debian-cd-clone/contrib/cronjob.weekly

190 lines
6.5 KiB
Plaintext
Raw Permalink Normal View History

2009-02-14 11:27:21 -01:00
#!/bin/sh
export TOPDIR=$(dirname $0)
. $TOPDIR/settings.sh
export PUBDIRJIG=$PUBDIR/weekly-builds
export DATE_BUILD="$DATE-$BUILDNUM"
2010-11-14 13:08:02 -01:00
export RSYNC_TARGET=/mnt/nfs-cdimage/.lenny_babble
2009-02-14 11:27:21 -01:00
2010-11-14 13:08:02 -01: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
DI_DIST=lenny
DI_CODENAME=lenny
2009-02-14 11:27:21 -01:00
export DI_DIST
export DI_CODENAME
2010-11-14 13:08:02 -01:00
OMIT_RELEASE_NOTES=0
export OMIT_RELEASE_NOTES
2009-02-14 11:27:21 -01:00
if [ "$ARCHES"x = ""x ] ; then
ARCHES="i386 source amd64 multi powerpc alpha arm armel hppa ia64 mips mipsel s390 sparc"
fi
if lockfile -r0 $TOPDIR/.debian-cd.lock ; then
2010-11-14 13:08:02 -01:00
echo "svn update debian-cd.lenny"
cd debian-cd.lenny && svn cleanup; svn up ; cd ..
2009-02-14 11:27:21 -01:00
2010-11-14 13:08:02 -01:00
cd debian-cd.lenny && ./tools/update_popcon tasks/lenny/popularity-contest ; cd ..
2009-02-14 11:27:21 -01:00
cd $TOPDIR
mkdir -p $PUBDIRJIG/trace
mkdir -p $RSYNC_TARGET
for arch in $ARCHES; do
if [ "$arch" != multi ] ; then
rm -rf $PUBDIRJIG/$arch
mkdir -p $PUBDIRJIG/$arch
date
#export DI_DIR="$ARCH_DI_DIR"
# Full CD set
if [ "$NOCD"x = ""x ] ; then
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
CDSTART=`date -u +%H:%M:%S`
2010-11-14 13:08:02 -01:00
unset DESKTOP
./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
error=$?
CDEND=`date -u +%H:%M:%S`
echo "$arch CDs started at $CDSTART, ended at $CDEND, error $error"
fi
2010-11-14 13:08:02 -01:00
# Full DVD set
if [ "$NODVD"x = ""x ] ; then
case $arch in
i386|amd64|source)
export MAXISOS=ALL; export MAXJIGDOS=ALL ;;
*)
export MAXISOS=1; export MAXJIGDOS=ALL ;;
esac
DVDSTART=`date -u +%H:%M:%S`
export DESKTOP=all
INSTALLER_CD=3 TASK=Debian-all \
KERNEL_PARAMS='desktop=all' \
./testingcds.lenny "$arch"
error=$?
DVDEND=`date -u +%H:%M:%S`
echo "$arch DVDs started at $DVDSTART, ended at $DVDEND, error $error"
fi
2009-02-14 11:27:21 -01:00
# Full BD set
if [ "$NOBD"x = ""x ] ; then
case $arch in
i386|amd64|source)
export MAXISOS=0
export MAXJIGDOS=ALL
BDSTART=`date -u +%H:%M:%S`
2010-11-14 13:08:02 -01:00
export DESKTOP=all
INSTALLER_CD=9 TASK=Debian-all \
KERNEL_PARAMS='desktop=all' \
./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
error=$?
BDEND=`date -u +%H:%M:%S`
echo "$arch BDs started at $BDSTART, ended at $BDEND, error $error"
;;
*)
echo "Not running BD build for $arch"
;;
esac
fi
2010-11-14 13:08:02 -01:00
# kde and xfce/lxde cds
2009-02-14 11:27:21 -01:00
if [ "$arch"x != "source"x ] && [ "$NOCD"x = ""x ] ; then
CDSTART=`date -u +%H:%M:%S`
export DESKTOP=kde
export MAXISOS=1; export MAXJIGDOS=1
INSTALLER_CD=4 TASK=Debian-kde \
KERNEL_PARAMS='desktop=kde' \
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
2010-11-14 13:08:02 -01:00
./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
error=$?
CDEND=`date -u +%H:%M:%S`
echo "$arch KDE CD started at $CDSTART, ended at $CDEND, error $error"
CDSTART=`date -u +%H:%M:%S`
2010-11-14 13:08:02 -01:00
export DESKTOP=light
2009-02-14 11:27:21 -01:00
export MAXISOS=1; export MAXJIGDOS=1
2010-11-14 13:08:02 -01:00
INSTALLER_CD=B TASK=Debian-light \
KERNEL_PARAMS='desktop=light' \
2009-02-14 11:27:21 -01:00
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
2010-11-14 13:08:02 -01:00
./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
error=$?
CDEND=`date -u +%H:%M:%S`
2010-11-14 13:08:02 -01:00
echo "$arch Xfce/LXDE CD started at $CDSTART, ended at $CDEND, error $error"
2009-02-14 11:27:21 -01:00
fi
if [ "$NOSYNC"x = ""x ] ; then
echo "Running ~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ $arch &"
~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ $arch &
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
DVDSTART=`date -u +%H:%M:%S`
2010-11-14 13:08:02 -01:00
export DESKTOP=all
INSTALLER_CD=6 TASK=Debian-all \
KERNEL_PARAMS='desktop=all' \
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
./testingcds.lenny "i386 amd64 source"
2009-02-14 11:27:21 -01:00
error=$?
DVDEND=`date -u +%H:%M:%S`
echo "Multi-arch DVD started at $DVDSTART, ended at $DVDEND, error $error"
mv $PUBDIRJIG/multi/jigdo-dvd/debian* $PUBDIRJIG/multi-arch/jigdo-dvd
2010-11-14 13:08:02 -01:00
for file in $PUBDIRJIG/multi/jigdo-dvd/*SUMS$SUMS_EXTENSION; do
outfile=$PUBDIRJIG/multi-arch/jigdo-dvd/`basename $file`
cat $file >> $outfile
done
2009-02-14 11:27:21 -01:00
mv $PUBDIRJIG/multi/iso-dvd/debian* $PUBDIRJIG/multi-arch/iso-dvd
2010-11-14 13:08:02 -01:00
for file in $PUBDIRJIG/multi/iso-dvd/*SUMS$SUMS_EXTENSION; do
outfile=$PUBDIRJIG/multi-arch/iso-dvd/`basename $file`
cat $file >> $outfile
done
2009-02-14 11:27:21 -01:00
rm -rf $PUBDIRJIG/multi
fi
if [ "$NOSYNC"x = ""x ] ; then
echo "Running ~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ multi-arch &"
~/build/iso_run $PUBDIRJIG/ $RSYNC_TARGET/ multi-arch &
fi
fi # end of multi
2010-11-14 13:08:02 -01:00
# Reset envvars for next iteration
unset DESKTOP
2009-02-14 11:27:21 -01:00
done
~/build/generate_firmware_images lenny
~/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