]> git.donarmstrong.com Git - neurodebian.git/blobdiff - tools/nd_adddist
Add the cowbuilder tools to the repos.
[neurodebian.git] / tools / nd_adddist
diff --git a/tools/nd_adddist b/tools/nd_adddist
new file mode 100755 (executable)
index 0000000..f0d8f6f
--- /dev/null
@@ -0,0 +1,24 @@
+#!/bin/bash
+
+. /home/cowbuilder/bin/nd_cmdsettings.sh
+
+# common options
+opts="--distribution $dist --debootstrap debootstrap --aptcache $aptcache"
+
+
+for a in i386 amd64; do
+  echo "Building $a base path..."
+  if [ "${family:0:3}" = "nd+" ]; then
+  echo "Including NeuroDebian repository..."
+    cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
+               --components "$components" \
+               --mirror "$mirror" \
+               --debootstrapopts --arch --debootstrapopts $a \
+               --othermirror "deb http://neuro.debian.net/debian $dist main contrib non-free"
+  else
+    cowbuilder --create --basepath /home/cowbuilder/cow/${family}-${dist}-${a}.cow $opts \
+               --components "$components" \
+               --mirror "$mirror" \
+               --debootstrapopts --arch --debootstrapopts $a
+  fi
+done