12345678910111213141516171819202122232425262728293031323334 |
- #!/bin/bash
- cur_date="`date +%Y-%m-%d`"
- ROOT=$(cd `dirname $0`; pwd)
- mkdir -p $ROOT/tmp
- rm -rf $ROOT/tmp/*
- mkdir -p $ROOT/tmp/lib
- mkdir -p $ROOT/tmp/log
- mkdir -p $ROOT/tmp/log/influxdb
- mkdir -p $ROOT/tmp/log/iotdb
- mkdir -p $ROOT/tmp/log/tsdb
- cp -rf $ROOT/influxdb/target/influxdb-0.0.1-SNAPSHOT-jar-with-dependencies.jar $ROOT/tmp/lib/influxdb.jar
- cp -rf $ROOT/iotdb/target/iotdb-0.0.1-SNAPSHOT-jar-with-dependencies.jar $ROOT/tmp/lib/iotdb.jar
- cp -rf $ROOT/tsdb/target/tsdb-0.0.1-SNAPSHOT-jar-with-dependencies.jar $ROOT/tmp/lib/tsdb.jar
- cp -rf $ROOT/shell $ROOT/tmp/
- cp -rf $ROOT/conf $ROOT/tmp/
- chmod -R +x $ROOT/shell/
- cd $ROOT
- if [ ! -d "release" ]; then
- mkdir -p release
- fi
- mv $ROOT/tmp $ROOT/tsdb-benchmark
- cd $ROOT
- tar -zcf $ROOT/release/tsdb-benchmark-v${cur_date}.tar.gz ./tsdb-benchmark
- rm -rf $ROOT/tsdb-benchmark/*
- rmdir $ROOT/tsdb-benchmark
- echo "打包成功"
|