packageArm.sh 826 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/bin/bash
  2. cur_date="`date +%Y-%m-%d`"
  3. ROOT=$(cd `dirname $0`; pwd)
  4. mkdir -p $ROOT/tmp
  5. rm -rf $ROOT/tmp/*
  6. cp -rf $ROOT/*.sh $ROOT/tmp/
  7. rm -rf $ROOT/tmp/build*
  8. rm -rf $ROOT/tmp/package*
  9. rm -rf $ROOT/tmp/changeName.sh
  10. mkdir -p $ROOT/tmp/build
  11. mkdir -p $ROOT/tmp/new
  12. cp -rf $ROOT/bat/batArm $ROOT/tmp/build/bat
  13. cp -rf $ROOT/build/smq* $ROOT/tmp/build/
  14. cp -rf $ROOT/build/curl $ROOT/tmp/build/
  15. cp -rf $ROOT/build/date $ROOT/tmp/build/
  16. cp -rf $ROOT/tests $ROOT/tmp/
  17. cp -rf $ROOT/tests-no-curl $ROOT/tmp/
  18. cp -rf $ROOT/tests-my-curl $ROOT/tmp/
  19. cp -rf $ROOT/lb $ROOT/tmp/
  20. cp -rf $ROOT/arm/traefik $ROOT/tmp/lb/
  21. cd $ROOT
  22. if [ ! -d "release" ]; then
  23. mkdir -p release
  24. fi
  25. mv $ROOT/tmp $ROOT/smq
  26. cd $ROOT
  27. tar -zcf $ROOT/release/smq-arm-v${cur_date}.tar.gz ./smq
  28. rm -rf $ROOT/smq/*
  29. rmdir $ROOT/smq
  30. echo "打包成功"