diff options
author | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 17:04:57 +0300 |
---|---|---|
committer | Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> | 2006-01-15 17:04:57 +0300 |
commit | 7ca61b6f3379bf66b446617b8834d92c13b366dd (patch) | |
tree | c0aaacfeb97a9bc74e73f8ff36ecbf1fd173808b /applets/install.sh | |
parent | 8c9daa12dcb4c1aa8f0f475896c9cfbcfb38370d (diff) |
- shared libbusybox.
- IMA compilation option (aka IPO, IPA,..)
Please holler if i broke something..
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 @@ export LC_ALL=POSIX export LC_CTYPE=POSIX -prefix=$1 -if [ "$prefix" = "" ]; then +prefix=${1} +if [ -z "$prefix" ]; then echo "No installation directory, aborting." exit 1; fi @@ -16,7 +16,22 @@ case "$2" in *) echo "Unknown install option: $2"; exit 1;; esac +if [ "$DO_INSTALL_LIBS" != "n" ]; then + # get the target dir for the libs + # This is an incomplete/incorrect list for now + case $(uname -m) in + x86_64|ppc64*|sparc64*|ia64*|hppa*64*) libdir=/lib64 ;; + *) libdir=/lib ;; + esac + mkdir -p $prefix/$libdir || exit 1 + for i in $DO_INSTALL_LIBS; do + rm -f $prefix/$libdir/$i || exit 1 + if [ -f $i ]; then + install -m 644 $i $prefix/$libdir/ || exit 1 + fi + done +fi rm -f $prefix/bin/busybox || exit 1 mkdir -p $prefix/bin || exit 1 install -m 755 busybox $prefix/bin/busybox || exit 1 |