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
This commit is contained in:
Jonas Häggqvist 2009-01-08 20:00:10 +00:00
parent c1b4745d7c
commit 36122cac6a
2 changed files with 7 additions and 6 deletions

View file

@ -447,6 +447,7 @@ Kaspar Rothenfußer
Ryan Press
Craig Elliott
Kenderes Tamas
Eric Shattow
The libmad team

View file

@ -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