aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2006-06-07 17:24:29 +0000
committerMike Frysinger <vapier@gentoo.org>2006-06-07 17:24:29 +0000
commit55b12105b5f8953f0988097fd7e925476df1ac8a (patch)
treed68946eb3d5d37cb82758146cd00778c7c5edba0
parentbc6584977abe96230da7e84302f7b6d5a4d2a495 (diff)
downloadbusybox-w32-55b12105b5f8953f0988097fd7e925476df1ac8a.tar.gz
busybox-w32-55b12105b5f8953f0988097fd7e925476df1ac8a.tar.bz2
busybox-w32-55b12105b5f8953f0988097fd7e925476df1ac8a.zip
dont mix tabs and spaces, kthx
-rwxr-xr-xapplets/install.sh26
1 files changed, 13 insertions, 13 deletions
diff --git a/applets/install.sh b/applets/install.sh
index e154996e3..9b00c63d1 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -5,15 +5,15 @@ export LC_CTYPE=POSIX
5 5
6prefix=${1} 6prefix=${1}
7if [ -z "$prefix" ]; then 7if [ -z "$prefix" ]; then
8 echo "usage: applets/install.sh DESTINATION [--symlinks/--hardlinks]" 8 echo "usage: applets/install.sh DESTINATION [--symlinks/--hardlinks]"
9 exit 1; 9 exit 1;
10fi 10fi
11h=`sort busybox.links | uniq` 11h=`sort busybox.links | uniq`
12case "$2" in 12case "$2" in
13 --hardlinks) linkopts="-f";; 13 --hardlinks) linkopts="-f";;
14 --symlinks) linkopts="-fs";; 14 --symlinks) linkopts="-fs";;
15 "") h="";; 15 "") h="";;
16 *) echo "Unknown install option: $2"; exit 1;; 16 *) echo "Unknown install option: $2"; exit 1;;
17esac 17esac
18 18
19if [ "$DO_INSTALL_LIBS" != "n" ]; then 19if [ "$DO_INSTALL_LIBS" != "n" ]; then
@@ -42,26 +42,26 @@ for i in $h ; do
42 appdir=`dirname $i` 42 appdir=`dirname $i`
43 mkdir -p $prefix/$appdir || exit 1 43 mkdir -p $prefix/$appdir || exit 1
44 if [ "$2" = "--hardlinks" ]; then 44 if [ "$2" = "--hardlinks" ]; then
45 bb_path="$prefix/bin/busybox" 45 bb_path="$prefix/bin/busybox"
46 else 46 else
47 case "$appdir" in 47 case "$appdir" in
48 /) 48 /)
49 bb_path="bin/busybox" 49 bb_path="bin/busybox"
50 ;; 50 ;;
51 /bin) 51 /bin)
52 bb_path="busybox" 52 bb_path="busybox"
53 ;; 53 ;;
54 /sbin) 54 /sbin)
55 bb_path="../bin/busybox" 55 bb_path="../bin/busybox"
56 ;; 56 ;;
57 /usr/bin|/usr/sbin) 57 /usr/bin|/usr/sbin)
58 bb_path="../../bin/busybox" 58 bb_path="../../bin/busybox"
59 ;; 59 ;;
60 *) 60 *)
61 echo "Unknown installation directory: $appdir" 61 echo "Unknown installation directory: $appdir"
62 exit 1 62 exit 1
63 ;; 63 ;;
64 esac 64 esac
65 fi 65 fi
66 echo " $prefix$i -> $bb_path" 66 echo " $prefix$i -> $bb_path"
67 ln $linkopts $bb_path $prefix$i || exit 1 67 ln $linkopts $bb_path $prefix$i || exit 1