Reworked the source so it will compile and run under glibc 2.0.7
[oweals/busybox.git] / install.sh
1 #!/bin/sh
2
3 set -e
4
5 if [ "$1" == "" ]; then
6     echo "No installation directory, aborting."
7     exit 1;
8 fi
9
10 h=`sort busybox.links | uniq`
11
12 for i in $h ; do
13         echo "  $1$i -> /bin/busybox"
14         mkdir -p $1/`echo $i | sed -e 's/\/[^\/]*$//' `
15         ln -fs /bin/busybox $1$i
16 done
17 rm -f $1/bin/busybox
18 install -m 755 busybox $1/bin/busybox
19
20 exit 0