25 lines
516 B
Bash
Executable File
25 lines
516 B
Bash
Executable File
#!/bin/bash
|
|
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin:/opt/homebrew/bin
|
|
|
|
curPath=`pwd`
|
|
rootPath=$(dirname "$curPath")
|
|
|
|
|
|
#----------------------------- 代码打包 -------------------------#
|
|
|
|
echo $rootPath
|
|
cd $rootPath
|
|
rm -rf ./*.pyc
|
|
rm -rf ./*/*.pyc
|
|
|
|
startTime=`date +%s`
|
|
|
|
zip -r -q -o mdserver-web.zip ./ -x@$curPath/pick_filter.txt
|
|
|
|
|
|
|
|
mv mdserver-web.zip $rootPath/scripts
|
|
|
|
endTime=`date +%s`
|
|
((outTime=($endTime-$startTime)))
|
|
echo -e "Time consumed:\033[32m $outTime \033[0mSec!" |