Check for a working make before running it.
authorAlan T. DeKok <aland@freeradius.org>
Sun, 27 Jun 2010 16:14:45 +0000 (18:14 +0200)
committerAlan T. DeKok <aland@freeradius.org>
Mon, 28 Jun 2010 13:56:58 +0000 (15:56 +0200)
This lets us tell the difference between a non-existent make, and one
which exists, but failed the "make all" stage

raddb/certs/bootstrap

index 0e536e4..cd7ce0a 100755 (executable)
 #
 umask 027
 cd `dirname $0`
-make all
+
+make -h 2>&1 > /dev/null
 
 #
-#  If that worked, exit.  Otherwise, run the commands manually.
+#  If we have a working "make", then use it.  Otherwise, run the commands
+#  manually.
 #
 if [ "$?" = "0" ]
 then
-  exit 0
+  exec make all
 fi
 
 #