packageApiSourceProject.sh 599 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. cur_date="`date +%Y-%m-%d`"
  3. ROOT=$(cd `dirname $0`; pwd)
  4. echo $ROOT
  5. DST_DIR_NAME=resodbapi-java
  6. mkdir -p $ROOT/release/$DST_DIR_NAME
  7. rm -rf $ROOT/release/$DST_DIR_NAME/*
  8. mkdir -p $ROOT/release/$DST_DIR_NAME/log
  9. mkdir -p $ROOT/release/$DST_DIR_NAME/lib
  10. cp -rf $ROOT/lib/*.jar $ROOT/release/$DST_DIR_NAME/lib/
  11. cp -rf $ROOT/pom.xml $ROOT/release/$DST_DIR_NAME/
  12. cp -rf $ROOT/src $ROOT/release/$DST_DIR_NAME/
  13. cp -rf $ROOT/README.md $ROOT/release/$DST_DIR_NAME/README.md
  14. cd $ROOT/release/
  15. tar -zcf $ROOT/release/cluster-dbapi-java-v${cur_date}.tar.gz ./$DST_DIR_NAME
  16. echo "打包成功"