1234567891011121314151617181920212223242526272829303132333435363738 |
- #!/bin/bash
- cur_date="`date +%Y-%m-%d`"
- ROOT=$(cd `dirname $0`; pwd)
- mkdir -p $ROOT/tmp
- rm -rf $ROOT/tmp/*
- cp -rf $ROOT/*.sh $ROOT/tmp/
- rm -rf $ROOT/tmp/build*
- rm -rf $ROOT/tmp/package*
- rm -rf $ROOT/tmp/changeName.sh
- mkdir -p $ROOT/tmp/build
- mkdir -p $ROOT/tmp/new
- cp -rf $ROOT/bat/batArm $ROOT/tmp/build/bat
- cp -rf $ROOT/build/smq* $ROOT/tmp/build/
- cp -rf $ROOT/build/curl $ROOT/tmp/build/
- cp -rf $ROOT/build/date $ROOT/tmp/build/
- cp -rf $ROOT/tests $ROOT/tmp/
- cp -rf $ROOT/tests-no-curl $ROOT/tmp/
- cp -rf $ROOT/tests-my-curl $ROOT/tmp/
- cp -rf $ROOT/lb $ROOT/tmp/
- cp -rf $ROOT/arm/traefik $ROOT/tmp/lb/
- cd $ROOT
- if [ ! -d "release" ]; then
- mkdir -p release
- fi
- mv $ROOT/tmp $ROOT/smq
- cd $ROOT
- tar -zcf $ROOT/release/smq-arm-v${cur_date}.tar.gz ./smq
- rm -rf $ROOT/smq/*
- rmdir $ROOT/smq
- echo "打包成功"
|