---
 bin/epkg                     |    2 +-
 bin/faxien                   |    2 +-
 scripts/bootstrap/header.txt |   16 ++++++++++------
 scripts/erlrel/make-erl.sh   |    2 +-
 4 files changed, 13 insertions(+), 9 deletions(-)

diff --git a/bin/epkg b/bin/epkg
index ead4797..36f21d0 100644
--- a/bin/epkg
+++ b/bin/epkg
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 PROG=$0
 PROG_DIR=$(cd `dirname $0`; pwd)
diff --git a/bin/faxien b/bin/faxien
index 0ed38a3..260244a 100644
--- a/bin/faxien
+++ b/bin/faxien
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 PROG=$0
 PROG_DIR=$(cd `dirname $0`; pwd)
diff --git a/scripts/bootstrap/header.txt b/scripts/bootstrap/header.txt
index ebe2864..6ec91ee 100644
--- a/scripts/bootstrap/header.txt
+++ b/scripts/bootstrap/header.txt
@@ -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 @@ else
   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 @@ echo "Error executing mkdir, do you have permission?"
 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
diff --git a/scripts/erlrel/make-erl.sh b/scripts/erlrel/make-erl.sh
index ca11497..cff6efb 100755
--- a/scripts/erlrel/make-erl.sh
+++ b/scripts/erlrel/make-erl.sh
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
 
 # Make sure a patch identifier has been provided as an argument
 if [ -z "$1" ]; then
-- 
1.6.0.6


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

Reply via email to