]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_build
Move args checks into each script.
[neurodebian.git] / tools / nd_build
index 7fa26c3ad6989c9ca29992b7b4d8e975ba931d3f..08ac6e2fcee0f1ca2cf8917394ae13aaba84c320 100755 (executable)
@@ -31,6 +31,21 @@ EOT
 exit 1
 fi
 
+family=$1
+dist=$2
+
+set -e
+
+if [ -z "$family" ]; then
+  echo "You need to provide a distribution family ('debian', 'ubuntu'); prefix with 'nd+' to enable the NeuroDebian repository."
+  exit 1
+fi
+
+if [ -z "$dist" ]; then
+  echo "You need to provide a distribution codename (e.g. 'lenny', 'squeeze')."
+  exit 1
+fi
+
 . /home/neurodebian/neurodebian.git/tools/nd_cmdsettings.sh
 
 # common options