mirror of
https://github.com/typecho/typecho.git
synced 2025-01-16 20:18:19 +01:00
fix make tools
This commit is contained in:
parent
7d229b55ee
commit
fefedb3866
@ -7,7 +7,7 @@ DIR=../
|
||||
update:
|
||||
@echo 'git update'
|
||||
rm -Rf build/
|
||||
git clone https://github.com/typecho/typecho.git build
|
||||
git clone --depth=1 https://github.com/typecho/typecho.git build
|
||||
rm -Rf build/.git
|
||||
rm -Rf build/.github
|
||||
rm -f build/.gitignore
|
||||
@ -17,18 +17,23 @@ update:
|
||||
for i in `find build/ -name '*.php'`; do php -l $$i; done;
|
||||
|
||||
|
||||
package:
|
||||
@echo 'package'
|
||||
rm:
|
||||
rm -Rf build/tools/
|
||||
rm -f build/todo.txt
|
||||
rm -Rf build/.git*
|
||||
rm -f build/changelog.txt
|
||||
rm -f build/.editorconfig
|
||||
rm -f build/.travis.yml
|
||||
rm -f build/README.md
|
||||
rm -Rf build/admin/scss
|
||||
rm -Rf build/admin/img/editor
|
||||
rm -Rf build/admin/img/icons
|
||||
rm -Rf build/admin/img/icons-2x
|
||||
rm -Rf build/usr/langs/*
|
||||
|
||||
|
||||
|
||||
package:
|
||||
@echo 'package'
|
||||
make rm
|
||||
mkdir build/usr/uploads/
|
||||
chmod 777 build/usr/uploads/
|
||||
tar -cvvzf build.tar.gz build/
|
||||
@ -68,15 +73,7 @@ theme:
|
||||
|
||||
install:
|
||||
make update
|
||||
rm -Rf build/tools/
|
||||
rm -f build/todo.txt
|
||||
rm -f build/changelog.txt
|
||||
rm -f build/.travis.yml
|
||||
rm -f build/README.md
|
||||
rm -Rf build/admin/scss
|
||||
rm -Rf build/admin/img/editor
|
||||
rm -Rf build/admin/img/icons
|
||||
rm -Rf build/admin/img/icons-2x
|
||||
make rm
|
||||
mkdir build/usr/uploads/
|
||||
chmod 777 build/usr/uploads/
|
||||
cp -Rf build/* ${DIR}
|
||||
|
Loading…
x
Reference in New Issue
Block a user