2010-07-02 23:24:56 +00:00
|
|
|
#!/bin/bash
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
export TOPDIR=$(dirname $0)
|
|
|
|
|
|
|
|
. $TOPDIR/settings.sh
|
|
|
|
|
|
|
|
export PUBDIRJIG=$PUBDIR/weekly-builds
|
|
|
|
export DATE_BUILD="$DATE-$BUILDNUM"
|
|
|
|
|
2010-11-14 14:17:33 -01:00
|
|
|
. $TOPDIR/common.sh
|
2010-07-02 23:24:56 +00:00
|
|
|
|
2010-11-14 14:17:33 -01:00
|
|
|
export RSYNC_TARGET=/mnt/nfs-cdimage/weekly-builds
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
# If we're doing a normal set of daily/weekly builds, leave the
|
|
|
|
# checksum filenames alone. Otherwise, make life easier for people
|
|
|
|
# combining things later and append a suitable name as we build.
|
|
|
|
if [ "$DEBVERSION"x != "testing"x ] ; then
|
|
|
|
export SUMS_EXTENSION=".large"
|
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
. images4testing_d-i
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
# Uncomment the following to use daily d-i builds for weekly images
|
|
|
|
# rather than what's in the archive
|
2010-07-02 23:24:56 +00:00
|
|
|
USE_DAILY_DI=N
|
2009-08-22 22:44:44 +00:00
|
|
|
|
|
|
|
if [ "$USE_DAILY_DI"x = "Y"x ] ; then
|
|
|
|
export DI=sid
|
|
|
|
export DI_WWW_HOME=default
|
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
export DI_DIST
|
|
|
|
export DI_CODENAME
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
OMIT_RELEASE_NOTES=0
|
|
|
|
export OMIT_RELEASE_NOTES
|
|
|
|
|
2010-07-02 23:24:56 +00:00
|
|
|
BUILDS_RUNNING=""
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$ARCHES"x = ""x ] ; then
|
2010-11-14 14:17:33 -01:00
|
|
|
ARCHES="i386 source amd64 multi powerpc armel hppa ia64 mips mipsel s390 sparc kfreebsd-amd64 kfreebsd-i386"
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
if lockfile -r0 $TOPDIR/.debian-cd.lock ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
# echo "NOT checking for svn updates"
|
2008-11-23 16:59:53 -01:00
|
|
|
echo "svn update debian-cd"
|
|
|
|
cd debian-cd && svn cleanup; svn up ; cd ..
|
|
|
|
|
2010-07-02 23:24:56 +00:00
|
|
|
# echo "NOT checking for popcon updates"
|
2009-08-22 22:44:44 +00:00
|
|
|
cd debian-cd && ./tools/update_popcon tasks/squeeze/popularity-contest ; cd ..
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
cd $TOPDIR
|
|
|
|
mkdir -p $PUBDIRJIG/trace
|
|
|
|
mkdir -p $RSYNC_TARGET
|
|
|
|
|
|
|
|
for arch in $ARCHES; do
|
2010-07-02 23:24:56 +00:00
|
|
|
arch_error=""
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$arch" != multi ] ; then
|
|
|
|
rm -rf $PUBDIRJIG/$arch
|
|
|
|
mkdir -p $PUBDIRJIG/$arch
|
2010-07-02 23:24:56 +00:00
|
|
|
arch_start=`now`
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
#export DI_DIR="$ARCH_DI_DIR"
|
|
|
|
|
|
|
|
# Full CD set
|
|
|
|
if [ "$NOCD"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
export MAX_PKG_SIZE=500000000
|
2008-11-23 16:59:53 -01:00
|
|
|
case $arch in
|
|
|
|
i386|amd64|source)
|
|
|
|
export MAXISOS=ALL; export MAXJIGDOS=ALL ;;
|
|
|
|
powerpc)
|
|
|
|
export MAXISOS=8; export MAXJIGDOS=ALL ;;
|
|
|
|
*)
|
|
|
|
export MAXISOS=3; export MAXJIGDOS=ALL ;;
|
|
|
|
esac
|
2009-08-23 00:12:41 +00:00
|
|
|
unset DESKTOP
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started CD
|
|
|
|
./testingcds "$arch" &
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
# Full DVD set
|
|
|
|
if [ "$NODVD"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
export MAX_PKG_SIZE=999999999999
|
2009-08-22 22:44:44 +00:00
|
|
|
case $arch in
|
|
|
|
i386|amd64|source)
|
|
|
|
export MAXISOS=ALL; export MAXJIGDOS=ALL ;;
|
|
|
|
*)
|
2010-11-14 14:17:33 -01:00
|
|
|
export MAXISOS=1; export MAXJIGDOS=ALL ;;
|
2009-08-22 22:44:44 +00:00
|
|
|
esac
|
|
|
|
export DESKTOP=all
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started DVD
|
|
|
|
INSTALLER_CD=3 TASK=Debian-all \
|
|
|
|
KERNEL_PARAMS='desktop=all' \
|
|
|
|
./testingcds "$arch" &
|
2009-08-22 22:44:44 +00:00
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
# Full BD set
|
|
|
|
if [ "$NOBD"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
export MAX_PKG_SIZE=999999999999
|
2008-11-23 16:59:53 -01:00
|
|
|
case $arch in
|
|
|
|
i386|amd64|source)
|
|
|
|
export MAXISOS=0
|
|
|
|
export MAXJIGDOS=ALL
|
2009-08-22 22:44:44 +00:00
|
|
|
export DESKTOP=all
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started BD
|
|
|
|
INSTALLER_CD=9 TASK=Debian-all \
|
|
|
|
KERNEL_PARAMS='desktop=all' \
|
|
|
|
./testingcds "$arch" &
|
2008-11-23 16:59:53 -01:00
|
|
|
;;
|
|
|
|
*)
|
2010-11-14 14:17:33 -01:00
|
|
|
echo " Not running BD build for $arch"
|
2008-11-23 16:59:53 -01:00
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
# kde and xfce/lxde cds
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$arch"x != "source"x ] && [ "$NOCD"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
export MAX_PKG_SIZE=300000000
|
2008-11-23 16:59:53 -01:00
|
|
|
export DESKTOP=kde
|
|
|
|
export MAXISOS=1; export MAXJIGDOS=1
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started KDECD
|
2010-07-02 23:24:56 +00:00
|
|
|
INSTALLER_CD=4 TASK=Debian-kde \
|
|
|
|
KERNEL_PARAMS='desktop=kde' \
|
|
|
|
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
|
|
|
|
export MAX_PKG_SIZE=300000000
|
2009-08-22 22:44:44 +00:00
|
|
|
export DESKTOP=light
|
2008-11-23 16:59:53 -01:00
|
|
|
export MAXISOS=1; export MAXJIGDOS=1
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started LIGHTCD
|
|
|
|
INSTALLER_CD=B TASK=Debian-light \
|
|
|
|
KERNEL_PARAMS='desktop=light' \
|
|
|
|
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
./testingcds "$arch" &
|
2010-07-02 23:24:56 +00:00
|
|
|
fi
|
|
|
|
|
2010-11-14 14:17:33 -01:00
|
|
|
catch_parallel_builds
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
if [ "$NOSYNC"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
if [ "$arch_error"x = "none"x ] ; then
|
2010-11-14 14:17:33 -01:00
|
|
|
echo " Running ~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ $arch &"
|
2010-07-02 23:24:56 +00:00
|
|
|
~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ $arch &
|
|
|
|
else
|
|
|
|
~/build/report_build_error $RSYNC_TARGET $arch "$arch_error"
|
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
|
|
|
else # multi
|
|
|
|
rm -rf $PUBDIRJIG/multi-arch
|
|
|
|
for i in iso-dvd jigdo-dvd; do
|
|
|
|
mkdir -p $PUBDIRJIG/multi-arch/$i
|
|
|
|
done
|
|
|
|
|
|
|
|
if [ "$NODVD"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
export MAX_PKG_SIZE=999999999999
|
2009-08-22 22:44:44 +00:00
|
|
|
export DESKTOP=all
|
2010-11-14 14:17:33 -01:00
|
|
|
build_started DVD
|
2009-08-22 22:44:44 +00:00
|
|
|
INSTALLER_CD=6 TASK=Debian-all \
|
|
|
|
KERNEL_PARAMS='desktop=all' \
|
|
|
|
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
|
2010-11-14 14:17:33 -01:00
|
|
|
VARIANTS=xen \
|
2009-08-22 22:44:44 +00:00
|
|
|
./testingcds "i386 amd64 source"
|
2010-07-02 23:24:56 +00:00
|
|
|
# We don't do multi in parallel, only one build type
|
|
|
|
# to do!
|
|
|
|
build_finished $arch $BUILDNAME $DVDSTART
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
mv $PUBDIRJIG/multi/jigdo-dvd/debian* $PUBDIRJIG/multi-arch/jigdo-dvd
|
2009-08-23 00:12:41 +00:00
|
|
|
for file in $PUBDIRJIG/multi/jigdo-dvd/*SUMS$SUMS_EXTENSION; do
|
|
|
|
outfile=$PUBDIRJIG/multi-arch/jigdo-dvd/`basename $file`
|
|
|
|
cat $file >> $outfile
|
|
|
|
done
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
mv $PUBDIRJIG/multi/iso-dvd/debian* $PUBDIRJIG/multi-arch/iso-dvd
|
2009-08-23 00:12:41 +00:00
|
|
|
for file in $PUBDIRJIG/multi/iso-dvd/*SUMS$SUMS_EXTENSION; do
|
|
|
|
outfile=$PUBDIRJIG/multi-arch/iso-dvd/`basename $file`
|
|
|
|
cat $file >> $outfile
|
|
|
|
done
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
rm -rf $PUBDIRJIG/multi
|
|
|
|
fi
|
|
|
|
|
|
|
|
if [ "$NOSYNC"x = ""x ] ; then
|
2010-07-02 23:24:56 +00:00
|
|
|
if [ "$arch_error"x = "none"x ] || [ "$arch_error"x = ""x ] ; then
|
2010-11-14 14:17:33 -01:00
|
|
|
echo " Running ~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ multi-arch &"
|
2010-07-02 23:24:56 +00:00
|
|
|
~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ multi-arch &
|
|
|
|
else
|
|
|
|
~/build/report_build_error $RSYNC_TARGET multi-arch "$arch_error"
|
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
|
|
|
fi # end of multi
|
2009-08-22 22:44:44 +00:00
|
|
|
|
|
|
|
# Reset envvars for next iteration
|
|
|
|
unset DESKTOP
|
2008-11-23 16:59:53 -01:00
|
|
|
done
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
~/build/generate_firmware_images squeeze
|
2008-11-23 16:59:53 -01:00
|
|
|
~/build/generate_firmware_images sid
|
|
|
|
|
|
|
|
if [ "$NOSNAP"x = ""x ] ; then
|
|
|
|
~/bin/weekly-snapshots
|
|
|
|
fi
|
|
|
|
|
|
|
|
date -u > $PUBDIRJIG/trace/cdimage.debian.org
|
|
|
|
|
|
|
|
rm -f $TOPDIR/.debian-cd.lock
|
|
|
|
fi
|