1234567891011121314151617181920212223242526 |
- #!/bin/bash
- cur_date="`date +%Y-%m-%d`"
- version=1.0.0
- ROOT=$(cd `dirname $0`; pwd)
- echo $ROOT
- DST_DIR_NAME=cluster-dbapi-java-demo
- mkdir -p $ROOT/release/$DST_DIR_NAME
- rm -rf $ROOT/release/$DST_DIR_NAME/*
- mkdir -p $ROOT/release/$DST_DIR_NAME/log
- mkdir -p $ROOT/release/$DST_DIR_NAME/lib
- cp -rf $ROOT/target/cluster-dbapi-java-pro-1.0-SNAPSHOT.jar $ROOT/lib/dbapi.jar
- cp -rf $ROOT/lib/*.jar $ROOT/release/$DST_DIR_NAME/lib/
- cp -rf $ROOT/pomDemoProject.xml $ROOT/release/$DST_DIR_NAME/pom.xml
- mkdir -p $ROOT/release/$DST_DIR_NAME/src
- cp -rf $ROOT/src/test $ROOT/release/$DST_DIR_NAME/src/
- cp -rf $ROOT/README.md $ROOT/release/$DST_DIR_NAME/README.md
- cd $ROOT/release/
- tar -zcf $ROOT/release/cluster-dbapi-java-demo-v${version}-${cur_date}.tar.gz ./$DST_DIR_NAME
- echo "打包成功"
|