Clean up $1=$prefix
-Erik
This commit is contained in:
parent
40bfc76385
commit
e5db406690
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
if [ "$1" = "" ]; then
|
prefix=$1
|
||||||
|
if [ "$prefix" = "" ]; then
|
||||||
echo "No installation directory, aborting."
|
echo "No installation directory, aborting."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
@ -11,13 +12,12 @@ if [ "$2" = "--hardlinks" ]; then
|
|||||||
else
|
else
|
||||||
linkopts="-fs"
|
linkopts="-fs"
|
||||||
fi
|
fi
|
||||||
prefix=$1
|
|
||||||
h=`sort busybox.links | uniq`
|
h=`sort busybox.links | uniq`
|
||||||
|
|
||||||
|
|
||||||
rm -f $1/bin/busybox
|
rm -f $prefix/bin/busybox
|
||||||
mkdir -p $1/bin
|
mkdir -p $prefix/bin
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $prefix/bin/busybox
|
||||||
|
|
||||||
for i in $h ; do
|
for i in $h ; do
|
||||||
appdir=`dirname $i`
|
appdir=`dirname $i`
|
||||||
|
10
install.sh
10
install.sh
@ -2,7 +2,8 @@
|
|||||||
|
|
||||||
set -e
|
set -e
|
||||||
set -x
|
set -x
|
||||||
if [ "$1" = "" ]; then
|
prefix=$1
|
||||||
|
if [ "$prefix" = "" ]; then
|
||||||
echo "No installation directory, aborting."
|
echo "No installation directory, aborting."
|
||||||
exit 1;
|
exit 1;
|
||||||
fi
|
fi
|
||||||
@ -11,13 +12,12 @@ if [ "$2" = "--hardlinks" ]; then
|
|||||||
else
|
else
|
||||||
linkopts="-fs"
|
linkopts="-fs"
|
||||||
fi
|
fi
|
||||||
prefix=$1
|
|
||||||
h=`sort busybox.links | uniq`
|
h=`sort busybox.links | uniq`
|
||||||
|
|
||||||
|
|
||||||
rm -f $1/bin/busybox
|
rm -f $prefix/bin/busybox
|
||||||
mkdir -p $1/bin
|
mkdir -p $prefix/bin
|
||||||
install -m 755 busybox $1/bin/busybox
|
install -m 755 busybox $prefix/bin/busybox
|
||||||
|
|
||||||
for i in $h ; do
|
for i in $h ; do
|
||||||
appdir=`dirname $i`
|
appdir=`dirname $i`
|
||||||
|
Loading…
Reference in New Issue
Block a user