diff options
author | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-19 05:31:45 +0000 |
---|---|---|
committer | andersen <andersen@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 1999-11-19 05:31:45 +0000 |
commit | 9854b38d81f9a8c0c5feb245d070b378415a82c2 (patch) | |
tree | eb5564c774b9ef03dc095e7c06e8adb2a8ede1c8 /install.sh | |
parent | 1fede547092c5302a27d5c668a47335b36fcdf53 (diff) | |
download | busybox-w32-9854b38d81f9a8c0c5feb245d070b378415a82c2.tar.gz busybox-w32-9854b38d81f9a8c0c5feb245d070b378415a82c2.tar.bz2 busybox-w32-9854b38d81f9a8c0c5feb245d070b378415a82c2.zip |
Stuf
git-svn-id: svn://busybox.net/trunk/busybox@109 69ca8d6d-28ef-0310-b511-8ec308f3f277
Diffstat (limited to 'install.sh')
-rwxr-xr-x | install.sh | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/install.sh b/install.sh index 29c9e26d9..5f0d2d5da 100755 --- a/install.sh +++ b/install.sh | |||
@@ -6,17 +6,20 @@ if [ "$1" == "" ]; then | |||
6 | echo "No installation directory, aborting." | 6 | echo "No installation directory, aborting." |
7 | exit 1; | 7 | exit 1; |
8 | fi | 8 | fi |
9 | rm -rf $1 | ||
9 | 10 | ||
10 | # can't just use cat, rmdir is not unique | ||
11 | #h=`cat busybox.links` | ||
12 | h=`sort busybox.links | uniq` | 11 | h=`sort busybox.links | uniq` |
13 | 12 | ||
14 | mkdir -p $1/bin | ||
15 | for i in $h ; do | 13 | for i in $h ; do |
16 | [ ${verbose} ] && echo " making link to $i" | 14 | echo "working on $i now" |
17 | mkdir -p $1/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' ` | 15 | mypath=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\1/g' `; |
18 | ln -s busybox $1/bin/`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' ` | 16 | myapp=`echo $i | sed -e 's/\(^.*\/\)\(.*\)/\2/g' `; |
17 | echo "mkdir -p $1$mypath" | ||
18 | echo "(cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp )" | ||
19 | mkdir -p $1$mypath | ||
20 | (cd $1$mypath ; ln -s /bin/busybox $1$mypath$myapp ) | ||
19 | done | 21 | done |
20 | rm -f $1/bin/busybox | 22 | rm -f $1/bin/busybox |
21 | install -m 755 busybox $1/bin/busybox | 23 | install -m 755 busybox $1/bin/busybox |
22 | 24 | ||
25 | |||