]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_gitbuild
Move args checks into each script.
[neurodebian.git] / tools / nd_gitbuild
index 4fae395688fbe224ef86688a4c10ac4aefb5eac0..ddec36d7b7d790aeafb43ea169c8b2a0d11930d5 100755 (executable)
@@ -1,5 +1,20 @@
 #!/bin/bash
 
+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