summaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
authorEric Andersen2000-07-25 16:47:03 +0000
committerEric Andersen2000-07-25 16:47:03 +0000
commite5db4066901962b6de6ee54cd48402b3f4f893aa (patch)
treee8dc4cc6d4ad02f9547b0c142bc35108bfeb00bf /applets/install.sh
parent40bfc763855145694f43f5eee5088a2361da56ed (diff)
downloadbusybox-e5db4066901962b6de6ee54cd48402b3f4f893aa.zip
busybox-e5db4066901962b6de6ee54cd48402b3f4f893aa.tar.gz
Clean up $1=$prefix
-Erik
Diffstat (limited to 'applets/install.sh')
-rwxr-xr-xapplets/install.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 236f62a..1ca7183 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -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`