From ebbceb219f9b9fe2103b8eb9471b76aeface207d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Xavier=20L=C3=A9aut=C3=A9?= Date: Mon, 24 Nov 2014 11:15:14 -0800 Subject: [PATCH] simpler build script --- build.sh | 30 ++++++++++-------------------- 1 file changed, 10 insertions(+), 20 deletions(-) diff --git a/build.sh b/build.sh index c27ee0b3d78..a95dafd23d0 100755 --- a/build.sh +++ b/build.sh @@ -1,27 +1,17 @@ -#!/bin/bash -e +#!/bin/bash -eu -PROJECT=druid +BASE=$(cd $(dirname $0) && pwd) -DIST_DIR=dist/tar +VERSION=`cat pom.xml | grep '' | head -1 | tail -1 | sed 's_.*\([^<]*\).*_\1_'` -SCRIPT_DIR=`dirname $0` -pushd $SCRIPT_DIR -SCRIPT_DIR=`pwd` -popd +echo "Building Version [${VERSION}]" -VERSION=`cat pom.xml | grep version | head -4 | tail -1 | sed 's_.*\([^<]*\).*_\1_'` +mvn -U -B clean package -echo Using Version[${VERSION}] +JARS=$(find "$BASE" -name "*-$VERSION-selfcontained.jar" | sed -e 's/^/ /') -mvn clean -mvn package +cat <