diff options
| author | Eric Andersen <andersen@codepoet.org> | 1999-11-15 17:33:30 +0000 |
|---|---|---|
| committer | Eric Andersen <andersen@codepoet.org> | 1999-11-15 17:33:30 +0000 |
| commit | a9c95ea6551eb3d894fcc56822c8aa394972b699 (patch) | |
| tree | 59359f25ba4bd356c2dfce79735fb66db4bb4151 /applets | |
| parent | 80974fad03689b4344888820d89b514d4e4d166b (diff) | |
| download | busybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.tar.gz busybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.tar.bz2 busybox-w32-a9c95ea6551eb3d894fcc56822c8aa394972b699.zip | |
Updates
Diffstat (limited to 'applets')
| -rwxr-xr-x | applets/install.sh | 11 |
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 | ||
| 3 | set -e | ||
| 4 | |||
| 3 | if [ "$1" == "" ]; then | 5 | if [ "$1" == "" ]; then |
| 4 | echo "No installation directory. aborting." | 6 | echo "No installation directory, aborting." |
| 5 | exit 1; | 7 | exit 1; |
| 6 | fi | 8 | fi |
| 7 | 9 | ||
| 8 | h=`cat busybox.links` | 10 | # can't just use cat, rmdir is not unique |
| 11 | #h=`cat busybox.links` | ||
| 12 | h=`sort busybox.links | uniq` | ||
| 9 | 13 | ||
| 10 | mkdir -p $1/bin | 14 | mkdir -p $1/bin |
| 11 | for i in $h ; do | 15 | for 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' ` |
| 14 | done | 19 | done |
| 15 | rm -f $1/bin/busybox | 20 | rm -f $1/bin/busybox |
| 16 | install -m 755 busybox $1/bin/busybox | 21 | install -m 755 busybox $1/bin/busybox |
