]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_cmdsettings.sh
Most famous revert -- sombody should do this right.
[neurodebian.git] / tools / nd_cmdsettings.sh
index 9fe51fa6f46bfb6cb803718d0d574698a9fb2a15..9fcd75edf25f6f9d88ad30bf825e9bc6ec511fa3 100755 (executable)
@@ -1,27 +1,21 @@
 family=$1
 dist=$2
 
-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
-
 # basic settings
-cowbuilderroot="/home/cowbuilder"
+cowbuilderroot="/home/neurodebian"
 buildplace="${cowbuilderroot}/build"
 
+# all cuurently supported dists
+alldists="nd+debian-lenny nd+debian-squeeze nd+debian-sid \
+          nd+ubuntu-lucid nd+ubuntu-karmic nd+ubuntu-jaunty"
+
 # default is debian
 aptcache="${cowbuilderroot}/debian_aptcache"
 components="main contrib non-free"
 mirror="http://debian.lcs.mit.edu/debian"
 
 # overwrite necessary bits for ubuntu
-if [ "$family" = "ubuntu" ]; then
+if [ "${family#nd+}" = "ubuntu" ]; then
   aptcache="${cowbuilderroot}/ubuntu_aptcache"
   components="main universe"
   mirror="http://ubuntu.media.mit.edu/ubuntu"