Clean up $1=$prefix
authorEric Andersen <andersen@codepoet.org>
Tue, 25 Jul 2000 16:47:03 +0000 (16:47 -0000)
committerEric Andersen <andersen@codepoet.org>
Tue, 25 Jul 2000 16:47:03 +0000 (16:47 -0000)
 -Erik

applets/install.sh
install.sh

index 236f62a568e32c71d2426b0a36a0d755fdd05177..1ca7183c802aa8524d8dd14229141e7fcb50c89f 100755 (executable)
@@ -2,7 +2,8 @@
 
 set -e
 set -x
-if [ "$1" = "" ]; then
+prefix=$1
+if [ "$prefix" = "" ]; then
     echo "No installation directory, aborting."
     exit 1;
 fi
@@ -11,13 +12,12 @@ if [ "$2" = "--hardlinks" ]; then
 else
     linkopts="-fs"
 fi
-prefix=$1
 h=`sort busybox.links | uniq`
 
 
-rm -f $1/bin/busybox
-mkdir -p $1/bin
-install -m 755 busybox $1/bin/busybox
+rm -f $prefix/bin/busybox
+mkdir -p $prefix/bin
+install -m 755 busybox $prefix/bin/busybox
 
 for i in $h ; do
        appdir=`dirname $i`
index 236f62a568e32c71d2426b0a36a0d755fdd05177..1ca7183c802aa8524d8dd14229141e7fcb50c89f 100755 (executable)
@@ -2,7 +2,8 @@
 
 set -e
 set -x
-if [ "$1" = "" ]; then
+prefix=$1
+if [ "$prefix" = "" ]; then
     echo "No installation directory, aborting."
     exit 1;
 fi
@@ -11,13 +12,12 @@ if [ "$2" = "--hardlinks" ]; then
 else
     linkopts="-fs"
 fi
-prefix=$1
 h=`sort busybox.links | uniq`
 
 
-rm -f $1/bin/busybox
-mkdir -p $1/bin
-install -m 755 busybox $1/bin/busybox
+rm -f $prefix/bin/busybox
+mkdir -p $prefix/bin
+install -m 755 busybox $prefix/bin/busybox
 
 for i in $h ; do
        appdir=`dirname $i`