mdserver-web/scripts/pick.sh

25 lines
516 B
Bash
Raw Permalink Normal View History

2018-12-03 05:22:04 -05:00
#!/bin/bash
2023-11-08 12:32:59 -05:00
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin
2018-12-03 05:22:04 -05:00
curPath=`pwd`
rootPath=$(dirname "$curPath")
#----------------------------- 代码打包 -------------------------#
echo $rootPath
cd $rootPath
2018-12-03 06:37:46 -05:00
rm -rf ./*.pyc
rm -rf ./*/*.pyc
2018-12-03 05:22:04 -05:00
startTime=`date +%s`
2018-12-03 06:37:46 -05:00
zip -r -q -o mdserver-web.zip ./ -x@$curPath/pick_filter.txt
2018-12-03 05:22:04 -05:00
2018-12-03 06:37:46 -05:00
mv mdserver-web.zip $rootPath/scripts
2018-12-03 05:22:04 -05:00
endTime=`date +%s`
((outTime=($endTime-$startTime)))
echo -e "Time consumed:\033[32m $outTime \033[0mSec!"