summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorJonas Häggqvist <rasher@rasher.dk>2009-01-08 20:00:10 +0000
committerJonas Häggqvist <rasher@rasher.dk>2009-01-08 20:00:10 +0000
commit36122cac6ab457692f545108a99681ad47526ee5 (patch)
tree55341cde42c1940042da4ed330927e22026ade12 /tools
parentc1b4745d7c2f46bdeda432a8279aac01d47821fd (diff)
downloadrockbox-36122cac6ab457692f545108a99681ad47526ee5.tar.gz
rockbox-36122cac6ab457692f545108a99681ad47526ee5.tar.bz2
rockbox-36122cac6ab457692f545108a99681ad47526ee5.zip
rockboxdev.sh now respects the environment variables RBDEV_DOWNLOAD, RBDEV_PREFIX and RBDEV_BUILD to enable setting download, install and build directories without editing the script. FS#9657 by Eric Shattow.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@19725 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh12
1 files changed, 6 insertions, 6 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index cd4030fabd..e3e9a0cbb4 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -8,17 +8,17 @@ set -e
# this is where this script will store downloaded files and check for already
# downloaded files
-dlwhere="/tmp/rbdev-dl"
+dlwhere="${RBDEV_DOWNLOAD:-/tmp/rbdev-dl}"
# will append the target string to the prefix dir mentioned here
# Note that the user running this script must be able to do make install in
# this given prefix directory. Also make sure that this given root dir
# exists.
-prefix="/usr/local"
+prefix="${RBDEV_PREFIX:-/usr/local}"
# This directory is used to extract all files and to build everything in. It
# must not exist before this script is invoked (as a security measure).
-builddir="/tmp/rbdev-build"
+builddir="${RBDEV_BUILD:-/tmp/rbdev-build}"
# This script needs to use GNU Make. On Linux systems, GNU Make is invoked
# by running the "make" command, on most BSD systems, GNU Make is invoked
@@ -117,9 +117,9 @@ else
echo "$dlwhere has been created to store downloads in"
fi
-echo "Download directory: $dlwhere (edit script to change dir)"
-echo "Install prefix: $prefix/[target] (edit script to change dir)"
-echo "Build dir: $builddir (edit script to change dir)"
+echo "Download directory: $dlwhere (set RBDEV_DOWNLOAD to change dir)"
+echo "Install prefix: $prefix/[target] (set RBDEV_PREFIX to change dir)"
+echo "Build dir: $builddir (set RBDEV_BUILD to change dir)"
###########################################################################
# Verify that we can write in the prefix dir, as otherwise we will hardly