diff options
Diffstat (limited to 'tools')
-rwxr-xr-x | tools/rockboxdev.sh | 12 |
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 | |||
8 | 8 | ||
9 | # this is where this script will store downloaded files and check for already | 9 | # this is where this script will store downloaded files and check for already |
10 | # downloaded files | 10 | # downloaded files |
11 | dlwhere="/tmp/rbdev-dl" | 11 | dlwhere="${RBDEV_DOWNLOAD:-/tmp/rbdev-dl}" |
12 | 12 | ||
13 | # will append the target string to the prefix dir mentioned here | 13 | # will append the target string to the prefix dir mentioned here |
14 | # Note that the user running this script must be able to do make install in | 14 | # Note that the user running this script must be able to do make install in |
15 | # this given prefix directory. Also make sure that this given root dir | 15 | # this given prefix directory. Also make sure that this given root dir |
16 | # exists. | 16 | # exists. |
17 | prefix="/usr/local" | 17 | prefix="${RBDEV_PREFIX:-/usr/local}" |
18 | 18 | ||
19 | # This directory is used to extract all files and to build everything in. It | 19 | # This directory is used to extract all files and to build everything in. It |
20 | # must not exist before this script is invoked (as a security measure). | 20 | # must not exist before this script is invoked (as a security measure). |
21 | builddir="/tmp/rbdev-build" | 21 | builddir="${RBDEV_BUILD:-/tmp/rbdev-build}" |
22 | 22 | ||
23 | # This script needs to use GNU Make. On Linux systems, GNU Make is invoked | 23 | # This script needs to use GNU Make. On Linux systems, GNU Make is invoked |
24 | # by running the "make" command, on most BSD systems, GNU Make is invoked | 24 | # by running the "make" command, on most BSD systems, GNU Make is invoked |
@@ -117,9 +117,9 @@ else | |||
117 | echo "$dlwhere has been created to store downloads in" | 117 | echo "$dlwhere has been created to store downloads in" |
118 | fi | 118 | fi |
119 | 119 | ||
120 | echo "Download directory: $dlwhere (edit script to change dir)" | 120 | echo "Download directory: $dlwhere (set RBDEV_DOWNLOAD to change dir)" |
121 | echo "Install prefix: $prefix/[target] (edit script to change dir)" | 121 | echo "Install prefix: $prefix/[target] (set RBDEV_PREFIX to change dir)" |
122 | echo "Build dir: $builddir (edit script to change dir)" | 122 | echo "Build dir: $builddir (set RBDEV_BUILD to change dir)" |
123 | 123 | ||
124 | ########################################################################### | 124 | ########################################################################### |
125 | # Verify that we can write in the prefix dir, as otherwise we will hardly | 125 | # Verify that we can write in the prefix dir, as otherwise we will hardly |