Merge pull request #4 from tralfamadude/master

cleaned up spurious errors in build.sh
This commit is contained in:
cheddar 2012-10-24 14:58:43 -07:00
commit e5066397c3
1 changed files with 14 additions and 15 deletions

View File

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