]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_gitbuild
Also for stats report which repo and which job number use our setup
[neurodebian.git] / tools / nd_gitbuild
index f891e5f941fe42004b17765e2495b78dae39f743..3473904f40d3298be4d73ef05dd991aab18872cc 100755 (executable)
@@ -1,6 +1,21 @@
 #!/bin/bash
 
-. /home/cowbuilder/bin/nd_cmdsettings.sh
+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
+
+. /etc/neurodebian/cmdsettings.sh
 
 # common options
 opts="--distribution $dist --aptcache $aptcache --buildplace $buildplace"