cleaned up build.sh to remove spurious errors.

This commit is contained in:
Paul Baclace 2012-10-24 14:34:24 -07:00
parent 27999caca0
commit 71edede866
1 changed files with 14 additions and 15 deletions

View File

@ -9,12 +9,12 @@ pushd $SCRIPT_DIR
SCRIPT_DIR=`pwd`
popd
VERSION=`cat pom.xml | grep version | head -2 | tail -1 | sed 's_.*<version>\([^<]*\)</version>.*_\1_'`
TAR_FILE=${SCRIPT_DIR}/${PROJECT}-${VERSION}.tar.gz
VERSION=`cat pom.xml | grep version | head -4 | tail -1 | sed 's_.*<version>\([^<]*\)</version>.*_\1_'`
#TAR_FILE=${SCRIPT_DIR}/${PROJECT}-${VERSION}.tar.gz
#rm -f ${TAR_FILE}
echo Using Version[${VERSION}] and creating zip file ${TAR_FILE}
echo Using Version[${VERSION}]
rm -f ${TAR_FILE}
mvn clean
mvn package
@ -23,14 +23,13 @@ if [ $? -ne "0" ]; then
exit 2;
fi
rm -rf ${DIST_DIR}
mkdir -p ${DIST_DIR}/lib
cp binary-artifact/target/${PROJECT}-binary-artifact-${VERSION}-selfcontained.jar ${DIST_DIR}/lib/
cp -r bin ${DIST_DIR}/ # (bin/ is provided by java-shell)
cd ${DIST_DIR}
tar czf ${TAR_FILE} *
echo
echo Created ${TAR_FILE}:
tar tf ${TAR_FILE} | sed -r 's/^/ /'
echo " "
echo " The following self-contained jars (and more) have been built:"
echo " "
find . -name '*-selfcontained.jar'
echo " "
echo "For examples, see: "
echo " "
ls -1 examples/*/*sh
echo " "
echo "See also https://github.com/metamx/druid/wiki"