Skip to content

Commit

Permalink
install supports custom deployment root
Browse files Browse the repository at this point in the history
  • Loading branch information
mellotanica committed Feb 18, 2016
1 parent 36ef166 commit a2c4ab1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ fi

OS=`uname -s`

DESTDIR=""

if test $OS == "Linux"; then
PREF="/usr"
else
Expand All @@ -24,6 +26,11 @@ while [ -n "$1" ]; do
"-i")
ICONSONLY="true"
;;
"-b")
DESTDIR="$2"
PREF="$DESTDIR""$PREF"
shift
;;
"*")
echo "unknown option $1, skipping"
;;
Expand All @@ -40,7 +47,7 @@ if [ "$ICONSONLY" == "false" ]; then
INCLUDED=$PREF"/include/uarm"
TESTD=$PREF"/share/doc/uarm/examples"
LDSCRIPTSD=$INCLUDED"/ldscripts"
DEFAULTD="/etc/default"
DEFAULTD="$DESTDIR/etc/default"
BIND=$PREF"/bin"

mkdir -p "$INCLUDED"
Expand Down

0 comments on commit a2c4ab1

Please sign in to comment.