代码拉取完成,页面将自动刷新
同步操作将从 easysoft/chanzhieps 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
VERSION=$(shell head -n 1 VERSION)
all: zip
trunk:
git archive --format=zip --output=code.zip master
rm -rf /tmp/chanzhirelease
mkdir /tmp/chanzhirelease
mv code.zip /tmp/chanzhirelease
cd /tmp/chanzhirelease; unzip code.zip; rm code.zip; make zip
clean:
rm -fr chanzhieps
rm -fr *.zip
zip:
mkdir chanzhieps
cp -fv VERSION 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/
mkdir -p chanzhieps/www/data/css/
mkdir -p chanzhieps/www/data/slides
mkdir -p chanzhieps/www/data/source
touch chanzhieps/www/robots.txt && rm chanzhieps/www/robots.txt && touch chanzhieps/www/robots.txt && chmod 777 chanzhieps/www/robots.txt
rm -frv chanzhieps/system/tmp
mkdir -p chanzhieps/system/module/package/ext/
mkdir -p chanzhieps/system/module/ui/theme/
mkdir -p chanzhieps/system/tmp/cache/
mkdir -p chanzhieps/system/tmp/log/
mkdir -p chanzhieps/system/tmp/model/
mkdir -p chanzhieps/system/tmp/backup/
mkdir -p chanzhieps/system/tmp/package/
mkdir -p chanzhieps/system/tmp/theme/
mkdir -p chanzhieps/system/tmp/template/
mkdir -p chanzhieps/system/tmp/effect/
mkdir -p chanzhieps/system/tmp/fonts/
# 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 && php ./createcustomercss.php
rm -frv chanzhieps/system/build
# delete the unused files.
find chanzhieps -name '.git*' |xargs rm -frv
find chanzhieps -name '.svn*' |xargs rm -frv
find chanzhieps -name tests |xargs rm -frv
# create index.html of each folder.
for path in `find chanzhieps/ -type d`; do touch "$$path/index.html"; done
rm chanzhieps/www/index.html
# add header code to every php file.
sed -i '1i\{if(!defined("RUN_MODE"))} {!die()} {/if}' `find chanzhieps/system/template/ -name '*.html.php'`
sed -i '1i\<?php if(!defined("RUN_MODE")) die();?>' `find chanzhieps/system/module/ -name '*.php'`
# add cache directory for purifier.
mkdir -pv chanzhieps/system/lib/purifier/standalone/HTMLPurifier/DefinitionCache/Serializer/
# change mode.
chmod 777 -R chanzhieps/system/template
chmod 777 -R chanzhieps/system/tmp/
chmod 777 -R chanzhieps/www/data
chmod 777 -R chanzhieps/system/config
chmod 777 -R chanzhieps/system/lib/purifier/standalone/HTMLPurifier/DefinitionCache
chmod 777 chanzhieps/system/module
chmod 777 chanzhieps/system/module/package/ext
chmod 777 chanzhieps/system/module/ui/theme
chmod a+rx chanzhieps/system/bin/*
#find chanzhieps/ -name ext |xargs chmod 777 -R
# zip zh.
zip -r -9 chanzhiEPS.$(VERSION).zip chanzhieps
#change favicon for english.
mv chanzhieps/www/favicon.en.ico chanzhieps/www/favicon.ico
#change default language as english.
sed -i "/^\$$config->default->lang/c \$$config->default->lang = 'en';" chanzhieps/system/config/config.php
sed -i "/^\$$config->defaultLang/c \$$config->defaultLang = 'en';" chanzhieps/system/config/chanzhieps.php
#set english license first.
sed -i '$$G;$$G' chanzhieps/system/doc/LICENSE
sed -i '1h;2,103H;1,105d;$$G' chanzhieps/system/doc/LICENSE
# zip en.
mv chanzhieps zsite
zip -r -9 zsite.$(VERSION).zip zsite
rm -fr zsite
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。