From 5c7e0d252ed698c2a92c474e5748ec965e7cfd06 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Thu, 24 May 2007 19:58:17 +0000 Subject: 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 --- tools/rockboxdev.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'tools/rockboxdev.sh') 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 ############################################################################## +# +# 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 -- cgit v1.2.3