aboutsummaryrefslogtreecommitdiff
path: root/applets/install.sh
diff options
context:
space:
mode:
authoraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-15 14:04:57 +0000
committeraldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277>2006-01-15 14:04:57 +0000
commita532478c9fef863dea125eb66441f715cf5d5c38 (patch)
treec0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /applets/install.sh
parent0c482ced822cfada034ff19b3e1b81f0ef6a6cf8 (diff)
downloadbusybox-w32-a532478c9fef863dea125eb66441f715cf5d5c38.tar.gz
busybox-w32-a532478c9fef863dea125eb66441f715cf5d5c38.tar.bz2
busybox-w32-a532478c9fef863dea125eb66441f715cf5d5c38.zip
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..) Please holler if i broke something.. git-svn-id: svn://busybox.net/trunk/busybox@13346 69ca8d6d-28ef-0310-b511-8ec308f3f277
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