diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-25 16:47:03 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2000-07-25 16:47:03 +0000 |
commit | 5095f22bf61ee57acc1d8441b72a68733a9c5be1 (patch) | |
tree | e8dc4cc6d4ad02f9547b0c142bc35108bfeb00bf /applets | |
parent | 65b47d299a2285653b50874b8115fe48fded7687 (diff) | |
download | busybox-w32-5095f22bf61ee57acc1d8441b72a68733a9c5be1.tar.gz busybox-w32-5095f22bf61ee57acc1d8441b72a68733a9c5be1.tar.bz2 busybox-w32-5095f22bf61ee57acc1d8441b72a68733a9c5be1.zip |
Clean up $1=$prefix
-Erik
git-svn-id: svn://busybox.net/trunk/busybox@901 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'applets')
-rwxr-xr-x | applets/install.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/applets/install.sh b/applets/install.sh index 236f62a56..1ca7183c8 100755 --- a/applets/install.sh +++ b/applets/install.sh | |||
@@ -2,7 +2,8 @@ | |||
2 | 2 | ||
3 | set -e | 3 | set -e |
4 | set -x | 4 | set -x |
5 | if [ "$1" = "" ]; then | 5 | prefix=$1 |
6 | if [ "$prefix" = "" ]; then | ||
6 | echo "No installation directory, aborting." | 7 | echo "No installation directory, aborting." |
7 | exit 1; | 8 | exit 1; |
8 | fi | 9 | fi |
@@ -11,13 +12,12 @@ if [ "$2" = "--hardlinks" ]; then | |||
11 | else | 12 | else |
12 | linkopts="-fs" | 13 | linkopts="-fs" |
13 | fi | 14 | fi |
14 | prefix=$1 | ||
15 | h=`sort busybox.links | uniq` | 15 | h=`sort busybox.links | uniq` |
16 | 16 | ||
17 | 17 | ||
18 | rm -f $1/bin/busybox | 18 | rm -f $prefix/bin/busybox |
19 | mkdir -p $1/bin | 19 | mkdir -p $prefix/bin |
20 | install -m 755 busybox $1/bin/busybox | 20 | install -m 755 busybox $prefix/bin/busybox |
21 | 21 | ||
22 | for i in $h ; do | 22 | for i in $h ; do |
23 | appdir=`dirname $i` | 23 | appdir=`dirname $i` |