chiark / gitweb /
support bzr+ssh and sftp protocols for bzr
[bin.git] / ubuntu-build-livecd
index ce74584..d1fa5bb 100755 (executable)
@@ -5,11 +5,29 @@ if [ -z "$1" ]; then
        exit 1
 fi
 PROJECT="$1"
+export LANG=C
+case $PROJECT in
+       ubuntu|kubuntu|ubuntu-server)
+               ARCHES="${ARCHES:-amd64 hppa i386 ia64 powerpc sparc}"
+               ;;
+       *)
+               ARCHES="${ARCHES:-amd64 i386 powerpc}"
+               ;;
+esac
 
-for i in terranova weddell adare king; do
-       (echo "$i starting at $(date)"
-        ssh -n buildd@$i.buildd /home/buildd/bin/BuildLiveCD "$PROJECT"
-        echo "$i finished at $(date)") &
+for arch in $ARCHES; do
+       case $arch in
+               amd64)          machine=king.buildd ;;
+               hppa)           machine=castilla.buildd ;;
+               i386)           machine=terranova.buildd ;;
+               ia64)           machine=weddell.buildd ;;
+               powerpc)        machine=royal.buildd ;;
+               sparc)          machine=vivies.buildd ;;
+               *)              continue ;;
+       esac
+       (echo "$machine starting at $(date)"
+        ssh -o 'ControlPath none' -n buildd@$machine /home/buildd/bin/BuildLiveCD "$PROJECT"
+        echo "$machine finished at $(date)") &
 done
 wait
 exit 0