aboutsummaryrefslogtreecommitdiff
path: root/applets
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>1999-11-15 17:33:30 +0000
committerEric Andersen <andersen@codepoet.org>1999-11-15 17:33:30 +0000
commita9c95ea6551eb3d894fcc56822c8aa394972b699 (patch)
tree59359f25ba4bd356c2dfce79735fb66db4bb4151 /applets
parent80974fad03689b4344888820d89b514d4e4d166b (diff)
downloadbusybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.tar.gz
busybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.tar.bz2
busybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.zip
Updates
Diffstat (limited to 'applets')
-rwxr-xr-xapplets/install.sh11
1 files changed, 8 insertions, 3 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 4a0b83254..29c9e26d9 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -1,16 +1,21 @@
1#!/bin/sh 1#!/bin/sh
2 2
3set -e
4
3if [ "$1" == "" ]; then 5if [ "$1" == "" ]; then
4 echo "No installation directory. aborting." 6 echo "No installation directory, aborting."
5 exit 1; 7 exit 1;
6fi 8fi
7 9
8h=`cat busybox.links` 10# can't just use cat, rmdir is not unique
11#h=`cat busybox.links`
12h=`sort busybox.links | uniq`
9 13
10mkdir -p $1/bin 14mkdir -p $1/bin
11for i in $h ; do 15for i in $h ; do
16 [ ${verbose} ] && echo " making link to $i"
12 mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` 17 mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `
13 (cd $1/bin ; ln -s busybox `echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` ) 18 ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `
14done 19done
15rm -f $1/bin/busybox 20rm -f $1/bin/busybox
16install -m 755 busybox $1/bin/busybox 21install -m 755 busybox $1/bin/busybox