From 7690f932b7831b2c1536942fd7cd323a7dc56af3 Mon Sep 17 00:00:00 2001 From: Stefano Mazzocchi Date: Wed, 7 Apr 2010 18:51:16 +0000 Subject: [PATCH] more fixes git-svn-id: http://google-refine.googlecode.com/svn/trunk@412 7d457c2a-affb-35e4-300a-418c747d4874 --- gridworks | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gridworks b/gridworks index 2f17ce1f2..3a343bf69 100755 --- a/gridworks +++ b/gridworks @@ -175,7 +175,7 @@ tool_download() { download $URL $FILE fi if [ ! -d "$DIR" ] ; then - if [ "`echo $FILE | sed 's@.*.tar.gz$@@'`" == "" ] ; then + if [ "`echo $FILE | sed 's@.*.tar.gz$@@' | sed 's@.*.tgz$@@'`" == "" ] ; then tar xzf $FILE || error "Error while expanding $FILE" fi if [ "`echo $FILE | sed 's@.*.zip$@@'`" == "" ] ; then @@ -344,9 +344,10 @@ dist() { windows_dist() { check_macosx dist_prepare - launch4j_prepare get_version $1 get_revision + + launch4j_prepare ANT_PARAMS="-Dlaunch4j.dir=${GRIDWORKS_TOOLS_DIR}/${LAUNCH4J_DIR}" ant windows @@ -363,9 +364,10 @@ linux_dist() { mac_dist() { check_macosx dist_prepare - jarbundler_prepare get_version $1 get_revision + + jarbundler_prepare ANT_PARAMS="-Djarbundler.dir=${GRIDWORKS_TOOLS_DIR}/${JARBUNDLER_DIR}" ant mac