diff options
author | Rob Landley <rob@landley.net> | 2005-12-15 07:25:54 +0000 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2005-12-15 07:25:54 +0000 |
commit | e0c418e13b005908da492ae2151096e8f2246287 (patch) | |
tree | e03f9d292096eedba0bedca225db5f89938a9630 /applets | |
parent | 164c5c80ba122a6ed71a29d41730c802750a5ae1 (diff) | |
download | busybox-w32-e0c418e13b005908da492ae2151096e8f2246287.tar.gz busybox-w32-e0c418e13b005908da492ae2151096e8f2246287.tar.bz2 busybox-w32-e0c418e13b005908da492ae2151096e8f2246287.zip |
The rest of Yann E. Morin's install revamp.
Diffstat (limited to 'applets')
-rwxr-xr-x | applets/install.sh | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/applets/install.sh b/applets/install.sh index d163a2ef8..2fcd2ae6e 100755 --- a/applets/install.sh +++ b/applets/install.sh | |||
@@ -8,12 +8,13 @@ if [ "$prefix" = "" ]; then | |||
8 | echo "No installation directory, aborting." | 8 | echo "No installation directory, aborting." |
9 | exit 1; | 9 | exit 1; |
10 | fi | 10 | fi |
11 | if [ "$2" = "--hardlinks" ]; then | ||
12 | linkopts="-f" | ||
13 | else | ||
14 | linkopts="-fs" | ||
15 | fi | ||
16 | h=`sort busybox.links | uniq` | 11 | h=`sort busybox.links | uniq` |
12 | case "$2" in | ||
13 | --hardlinks) linkopts="-f";; | ||
14 | --symlinks) linkopts="-fs";; | ||
15 | "") h="";; | ||
16 | *) echo "Unknown install option: $2"; exit 1;; | ||
17 | esac | ||
17 | 18 | ||
18 | 19 | ||
19 | rm -f $prefix/bin/busybox || exit 1 | 20 | rm -f $prefix/bin/busybox || exit 1 |