From 36122cac6ab457692f545108a99681ad47526ee5 Mon Sep 17 00:00:00 2001 From: Jonas Häggqvist Date: Thu, 8 Jan 2009 20:00:10 +0000 Subject: 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 --- docs/CREDITS | 1 + tools/rockboxdev.sh | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/CREDITS b/docs/CREDITS index 8ea6746e4c..4df253feb3 100644 --- a/docs/CREDITS +++ b/docs/CREDITS @@ -447,6 +447,7 @@ Kaspar Rothenfußer Ryan Press Craig Elliott Kenderes Tamas +Eric Shattow The libmad team 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 -- cgit v1.2.3