more fixes

git-svn-id: http://google-refine.googlecode.com/svn/trunk@412 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
Stefano Mazzocchi 2010-04-07 18:51:16 +00:00
parent f816a288af
commit 7690f932b7

View File

@ -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