summaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2006-01-15 14:04:57 +0000
commit7ca61b6f3379bf66b446617b8834d92c13b366dd (patch)
treec0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /applets/install.sh
parent8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff)
downloadbusybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.gz
busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.tar.bz2
busybox-w32-7ca61b6f3379bf66b446617b8834d92c13b366dd.zip
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..) Please holler if i broke something..
Diffstat (limited to 'applets/install.sh')
-rwxr-xr-xapplets/install.sh19
1 files changed, 17 insertions, 2 deletions
diff --git a/applets/install.sh b/applets/install.sh
index 2fcd2ae6e..cc6c1fa49 100755
--- a/applets/install.sh
+++ b/applets/install.sh
@@ -3,8 +3,8 @@
3export LC_ALL=POSIX 3export LC_ALL=POSIX
4export LC_CTYPE=POSIX 4export LC_CTYPE=POSIX
5 5
6prefix=$1 6prefix=${1}
7if [ "$prefix" = "" ]; then 7if [ -z "$prefix" ]; then
8 echo "No installation directory, aborting." 8 echo "No installation directory, aborting."
9 exit 1; 9 exit 1;
10fi 10fi
@@ -16,7 +16,22 @@ case "$2" in
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
20 # get the target dir for the libs
21 # This is an incomplete/incorrect list for now
22 case $(uname -m) in
23 x86_64|ppc64*|sparc64*|ia64*|hppa*64*) libdir=/lib64 ;;
24 *) libdir=/lib ;;
25 esac
19 26
27 mkdir -p $prefix/$libdir || exit 1
28 for i in $DO_INSTALL_LIBS; do
29 rm -f $prefix/$libdir/$i || exit 1
30 if [ -f $i ]; then
31 install -m 644 $i $prefix/$libdir/ || exit 1
32 fi
33 done
34fi
20rm -f $prefix/bin/busybox || exit 1 35rm -f $prefix/bin/busybox || exit 1
21mkdir -p $prefix/bin || exit 1 36mkdir -p $prefix/bin || exit 1
22install -m 755 busybox $prefix/bin/busybox || exit 1 37install -m 755 busybox $prefix/bin/busybox || exit 1