diff options
author | Daniel Stenberg <daniel@haxx.se> | 2007-05-24 19:58:17 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2007-05-24 19:58:17 +0000 |
commit | 5c7e0d252ed698c2a92c474e5748ec965e7cfd06 (patch) | |
tree | 3a36ac6d455280849b9fa975c1c8f828eb6fe58a /tools/rockboxdev.sh | |
parent | 18c348f1b191af02b24850451aa98269bec5df5b (diff) | |
download | rockbox-5c7e0d252ed698c2a92c474e5748ec965e7cfd06.tar.gz rockbox-5c7e0d252ed698c2a92c474e5748ec965e7cfd06.zip |
verify that a few required tools are present to prevent "odd" messages later
on due to the lack of them
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@13490 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'tools/rockboxdev.sh')
-rwxr-xr-x | tools/rockboxdev.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh index 367f607799..f9b1ae8a46 100755 --- a/tools/rockboxdev.sh +++ b/tools/rockboxdev.sh | |||
@@ -28,6 +28,10 @@ fi | |||
28 | 28 | ||
29 | ############################################################################## | 29 | ############################################################################## |
30 | 30 | ||
31 | # | ||
32 | # These are the tools this script requires and depends upon. | ||
33 | reqtools="gcc bzip2 make patch" | ||
34 | |||
31 | 35 | ||
32 | findtool(){ | 36 | findtool(){ |
33 | file="$1" | 37 | file="$1" |
@@ -73,6 +77,15 @@ getfile() { | |||
73 | 77 | ||
74 | } | 78 | } |
75 | 79 | ||
80 | for t in $reqtools; do | ||
81 | tool=`findtool $t` | ||
82 | if test -z "$tool"; then | ||
83 | echo "ROCKBOXDEV: $t is required for this script to work. Please" | ||
84 | echo "ROCKBOXDEV: install and re-run the script." | ||
85 | exit | ||
86 | fi | ||
87 | done | ||
88 | |||
76 | ########################################################################### | 89 | ########################################################################### |
77 | # Verify download directory or create it | 90 | # Verify download directory or create it |
78 | if test -d "$dlwhere"; then | 91 | if test -d "$dlwhere"; then |