Code

Added additional cmd checks
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 13:39:35 +0000 (13:39 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 5 Jun 2008 13:39:35 +0000 (13:39 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@11245 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/contrib/make-gosa-package

index f80e325885c16ecfc291b45d2fd8bfd7f074b381..a98bdffa2b7d89eccedbc29dd620ecbd5da6c7ed 100755 (executable)
@@ -44,10 +44,12 @@ usage() {
        exit 1
 }
 
-if ! which dh-make-gosa >/dev/null; then
-       echo "Error: cannot find dh-make-gosa binary in path!";
-       exit 1
-fi
+for cmd in dh-make-gosa debchange dpkg-buildpackage dpkg-source svn; do
+  if ! which $cmd >/dev/null; then
+       echo "Error: cannot find '$cmd' command in path!";
+       exit 1
+  fi
+done
 
 # Import command line parameters
 PARMS=`getopt -o brscip:,h --long branch,changelog,plugins,section,si-section,release:,help -n "${0##*/}" -- "$@"`