代码拉取完成,页面将自动刷新
同步操作将从 easysoft/chanzhieps 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
VERSION=$(shell head -n 1 VERSION)
all: tgz
linux: tgz build4linux
clean:
rm -fr chanzhieps
rm -fr *.tar.gz
rm -fr *.zip
tgz:
mkdir chanzhieps
cp -frv system chanzhieps/
rm -fr chanzhieps/system/config/my.php
cp -frv www chanzhieps && rm -fr chanzhieps/www/data/* && mkdir -p chanzhieps/www/data/upload/
rm -frv chanzhieps/system/tmp/cache/*
rm -frv chanzhieps/system/tmp/extension/*
rm -frv chanzhieps/system/tmp/log/*
rm -frv chanzhieps/system/tmp/model/*
# combine js and css files.
mkdir -pv chanzhieps/system/build/ && cp system/build/minifyfront.php chanzhieps/system/build/
cd chanzhieps/system/build/ && php ./minifyfront.php
rm -frv chanzhieps/system/build
# delee the unused files.
find chanzhieps -name '.git*' |xargs rm -frv
find chanzhieps -name '.svn*' |xargs rm -frv
find chanzhieps -name tests |xargs rm -frv
# change mode.
chmod 777 -R chanzhieps/system/tmp/
chmod 777 -R chanzhieps/www/data
chmod 777 -R chanzhieps/system/config
chmod 777 chanzhieps/system/module
chmod a+rx chanzhieps/system/bin/*
#find chanzhieps/ -name ext |xargs chmod 777 -R
# zip it.
zip -r -9 chanzhiEPS.$(VERSION).zip chanzhieps
rm -fr chanzhieps
ips:
mkdir chanzhiips
cp -frv system chanzhiips/
rm -fr chanzhiips/system/config/my.php
cp -frv www chanzhiips && rm -fr chanzhiips/www/data/* && mkdir -p chanzhiips/www/data/upload/
rm -frv chanzhiips/system/tmp/cache/*
rm -frv chanzhiips/system/tmp/extension/*
rm -frv chanzhiips/system/tmp/log/*
rm -frv chanzhiips/system/tmp/model/*
# combine js and css files.
mkdir -pv chanzhiips/system/build/ && cp system/build/minifyfront.php chanzhiips/system/build/
cd chanzhiips/system/build/ && php ./minifyfront.php
rm -frv chanzhiips/system/build
# merge chanzhiips
svn export https://github.com/xirang/chanzhiips/trunk ips
rsync -av --exclude='db/' --exclude='.git/' --exclude='README.md' ips/ chanzhiips
cat ips/system/db/install.sql >> chanzhiips/system/db/chanzhi.sql
# delete the unused files.
find chanzhiips -name '.git*' |xargs rm -frv
find chanzhiips -name '.svn*' |xargs rm -frv
find chanzhiips -name tests |xargs rm -frv
cd chanzhiips/system/module && rm -frv rss product blog forum reply thread message book
# change mode.
chmod 777 -R chanzhiips/system/tmp/
chmod 777 -R chanzhiips/www/data
chmod 777 -R chanzhiips/system/config
chmod 777 chanzhiips/system/module
chmod a+rx chanzhiips/system/bin/*
# zip it.
zip -r -9 chanzhiIPS.`cat chanzhiips/VERSION`.zip chanzhiips
rm -fr chanzhiips
rm -fr ips
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。