--- header.txt 2008-08-29 00:06:34.000000000 -0500 +++ /tmp/bootstrap/header.txt 2009-01-27 20:41:09.000000000 -0600 @@ -1,12 +1,15 @@ #!/bin/sh
# create a directory to extract to. -export PREFIX="/usr/local/erlware" +PREFIX="/usr/local/erlware" +export PREFIX if [ "$1" != "" ]; then if [ "`basename $1`" = "erlware" ]; then - export PREFIX="$1" + PREFIX="$1" + export PREFIX else - export PREFIX="$1/erlware" + PREFIX="$1/erlware" + export PREFIX fi else echo "" @@ -15,7 +18,7 @@ echo "" fi -if [ -e $PREFIX ];then +if [ -f $PREFIX ];then echo "$PREFIX already exists" echo "Would you like to delete it? Answer [y|N] $> \c" read RESP @@ -55,13 +58,14 @@ exit 1 fi -export PREFIX=$(cd $PREFIX; pwd) +PREFIX=`cd $PREFIX; pwd` +export PREFIX echo Untaring into $PREFIX # Take the TGZ portion of this file and pipe it to tar. tail -n +$SKIP $0 > $PREFIX/tmp.tar.gz -(cd $PREFIX; tar -zxf tmp.tar.gz) +(cd $PREFIX; gzip -dc tmp.tar.gz | tar xf -) rm $PREFIX/tmp.tar.gz if [ $? != 0 ]; then --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "erlware-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/erlware-dev?hl=en -~----------~----~----~----~------~----~------~--~---
