blob: b154f014d02844d6a1b87fde7f53ad014491f2ba [file] [log] [blame]
#!/bin/bash
BASEDIR=$(dirname "$0")
DISTRIBUTEDLOG_ROOT="${BASEDIR}/../.."
set -e
shopt -s dotglob
cd ${DISTRIBUTEDLOG_ROOT}
rm -rf distributedlog-benchmark/lib
rm -rf dist/distributedlog-benchmark*
mkdir -p dist/distributedlog-benchmark/{conf,lib}
mvn clean install -Ptwitter-ostrich-provider -pl distributedlog-benchmark -am -DskipTests
cp -rf distributedlog-benchmark/conf/* dist/distributedlog-benchmark/conf
cp -rf distributedlog-benchmark/lib/* dist/distributedlog-benchmark/lib
cp -rf distributedlog-benchmark/target/distributedlog-benchmark-*.jar dist/distributedlog-benchmark
cd dist
zip -r distributedlog-benchmark.zip distributedlog-benchmark >/dev/null