[GRASS-SVN] r43368 - grass/branches/develbranch_6/scripts/g.extension

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Aug 31 21:00:55 EDT 2010


Author: hamish
Date: 2010-09-01 01:00:55 +0000 (Wed, 01 Sep 2010)
New Revision: 43368

Modified:
   grass/branches/develbranch_6/scripts/g.extension/g.extension
Log:
test for the 'install' program

Modified: grass/branches/develbranch_6/scripts/g.extension/g.extension
===================================================================
--- grass/branches/develbranch_6/scripts/g.extension/g.extension	2010-08-31 12:29:49 UTC (rev 43367)
+++ grass/branches/develbranch_6/scripts/g.extension/g.extension	2010-09-01 01:00:55 UTC (rev 43368)
@@ -84,6 +84,8 @@
 rm -f "$TMPDIR"
 mkdir "$TMPDIR"
 
+#TODO: combine all these checks into a single for loop
+
 # check if we have the svn client
 if [ ! -x "`which svn`" ] ; then
     g.message -e "svn client required. Please install Subversion first."
@@ -92,10 +94,16 @@
 
 # check if we have the make program
 if [ ! -x "`which make`" ] ; then
-    g.message -e "'make' program required. Please install first."
+    g.message -e "The 'make' program is required. Please install first."
     exit 1
 fi
 
+# check if we have the "install" program
+if [ ! -x "`which install`" ] ; then
+    g.message -e "The 'install' program is required. Please install first."
+    exit 1
+fi
+
 # check if we have wget or curl
 if [ ! -x "`which wget`" ] ; then
     if [ ! -x "`which curl`" ] ; then



More information about the grass-commit mailing list