projects
/
oweals
/
busybox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
re-order a little for alphabetical
[oweals/busybox.git]
/
applets
/
install.sh
diff --git
a/applets/install.sh
b/applets/install.sh
index 236f62a568e32c71d2426b0a36a0d755fdd05177..d163a2ef84303034728339ebffa4e19cb68ab32e 100755
(executable)
--- a/
applets/install.sh
+++ b/
applets/install.sh
@@
-1,8
+1,10
@@
#!/bin/sh
#!/bin/sh
-set -e
-set -x
-if [ "$1" = "" ]; then
+export LC_ALL=POSIX
+export LC_CTYPE=POSIX
+
+prefix=$1
+if [ "$prefix" = "" ]; then
echo "No installation directory, aborting."
exit 1;
fi
echo "No installation directory, aborting."
exit 1;
fi
@@
-11,17
+13,16
@@
if [ "$2" = "--hardlinks" ]; then
else
linkopts="-fs"
fi
else
linkopts="-fs"
fi
-prefix=$1
h=`sort busybox.links | uniq`
h=`sort busybox.links | uniq`
-rm -f $
1/bin/busybox
-mkdir -p $
1/bin
-install -m 755 busybox $
1/bin/busybox
+rm -f $
prefix/bin/busybox || exit 1
+mkdir -p $
prefix/bin || exit 1
+install -m 755 busybox $
prefix/bin/busybox || exit 1
for i in $h ; do
appdir=`dirname $i`
for i in $h ; do
appdir=`dirname $i`
- mkdir -p $prefix/$appdir
+ mkdir -p $prefix/$appdir
|| exit 1
if [ "$2" = "--hardlinks" ]; then
bb_path="$prefix/bin/busybox"
else
if [ "$2" = "--hardlinks" ]; then
bb_path="$prefix/bin/busybox"
else
@@
-44,8
+45,8
@@
for i in $h ; do
;;
esac
fi
;;
esac
fi
- echo " $prefix$i ->
/bin/busybox
"
- ln $linkopts $bb_path $prefix$i
+ echo " $prefix$i ->
$bb_path
"
+ ln $linkopts $bb_path $prefix$i
|| exit 1
done
exit 0
done
exit 0