packageCurlServer.sh 650 B

123456789101112131415161718192021222324
  1. #!/bin/bash
  2. cur_date="`date +%Y-%m-%d`"
  3. ROOT=$(cd `dirname $0`/../../../; pwd)
  4. mkdir -p $ROOT/release/tmpE
  5. rm -rf $ROOT/release/tmpE/*
  6. mkdir -p $ROOT/release/tmpE/curl-server/lib
  7. mkdir -p $ROOT/release/tmpE/curl-server/shell/curlServer
  8. cp $ROOT/lib/CurlServer $ROOT/release/tmpE/curl-server/lib
  9. cp -rf $ROOT/shell/curlServer/*.sh $ROOT/release/tmpE/curl-server/shell/curlServer
  10. mkdir -p $ROOT/release/tmpE/curl-server/logs/curlServer
  11. mkdir -p $ROOT/release/tmpE/curl-server/pid
  12. cd $ROOT/release/tmpE
  13. tar -zcf $ROOT/release/curl-server_${cur_date}.tar.gz curl-server
  14. cd -
  15. rm -rf $ROOT/release/tmpE/*
  16. rmdir $ROOT/release/tmpE
  17. echo "打包成功"