#!/bin/bash# (C) Karl Goetz, 2007.# This snippet is placed under the GPL for viral purposes.# README:# The $DIST array needs work - it should actually aquire the correct source, then run dpkg-buildpackage# against it. at the moment it just says '$DIST', so i know it sort of works ;)# This is pre release code. all it does is echo stuff. this will be fixed in time :)# set -vex# set -ex# This goes in config, which then gets sourced here.DIST_ARRAY=(dapper gutsy)ARCH_ARRAY=(i386 amd64 sparc powerpc)LOGDIR=/tmp/multistuff(){ for DIST in "${DIST_ARRAY[@]}" do for ARCH in "${ARCH_ARRAY[@]}" do # do runCmd "$a" "$d" echo "script -a $LOGDIR$DIST-$ARCH -c time fakeroot dpkg-buildpackage -a$ARCH $DIST" done done }# Format:# function releases architecturesmultistuff "$DIST_ARRAY" "$ARCH_ARRAY"