summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rwxr-xr-xtools/rockboxdev.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/rockboxdev.sh b/tools/rockboxdev.sh
index 367f607..f9b1ae8 100755
--- a/tools/rockboxdev.sh
+++ b/tools/rockboxdev.sh
@@ -28,6 +28,10 @@ fi
##############################################################################
+#
+# These are the tools this script requires and depends upon.
+reqtools="gcc bzip2 make patch"
+
findtool(){
file="$1"
@@ -73,6 +77,15 @@ getfile() {
}
+for t in $reqtools; do
+ tool=`findtool $t`
+ if test -z "$tool"; then
+ echo "ROCKBOXDEV: $t is required for this script to work. Please"
+ echo "ROCKBOXDEV: install and re-run the script."
+ exit
+ fi
+done
+
###########################################################################
# Verify download directory or create it
if test -d "$dlwhere"; then