diff options
author | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-15 14:04:57 +0000 |
---|---|---|
committer | aldot <aldot@69ca8d6d-28ef-0310-b511-8ec308f3f277> | 2006-01-15 14:04:57 +0000 |
commit | a532478c9fef863dea125eb66441f715cf5d5c38 (patch) | |
tree | c0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /applets/install.sh | |
parent | 0c482ced822cfada034ff19b3e1b81f0ef6a6cf8 (diff) | |
download | busybox-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-x | applets/install.sh | 19 |
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 @@ | |||
3 | export LC_ALL=POSIX | 3 | export LC_ALL=POSIX |
4 | export LC_CTYPE=POSIX | 4 | export LC_CTYPE=POSIX |
5 | 5 | ||
6 | prefix=$1 | 6 | prefix=${1} |
7 | if [ "$prefix" = "" ]; then | 7 | if [ -z "$prefix" ]; then |
8 | echo "No installation directory, aborting." | 8 | echo "No installation directory, aborting." |
9 | exit 1; | 9 | exit 1; |
10 | fi | 10 | fi |
@@ -16,7 +16,22 @@ case "$2" in | |||
16 | *) echo "Unknown install option: $2"; exit 1;; | 16 | *) echo "Unknown install option: $2"; exit 1;; |
17 | esac | 17 | esac |
18 | 18 | ||
19 | if [ "$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 | ||
34 | fi | ||
20 | rm -f $prefix/bin/busybox || exit 1 | 35 | rm -f $prefix/bin/busybox || exit 1 |
21 | mkdir -p $prefix/bin || exit 1 | 36 | mkdir -p $prefix/bin || exit 1 |
22 | install -m 755 busybox $prefix/bin/busybox || exit 1 | 37 | install -m 755 busybox $prefix/bin/busybox || exit 1 |