debian-cd-clone/contrib/cronjob.daily

94 lines
3.0 KiB
Plaintext
Raw Normal View History

2009-02-14 11:27:21 -01:00
#!/bin/bash
TOPDIR=$(dirname $0)
. $TOPDIR/settings.sh
2010-11-14 13:08:02 -01:00
export PUBDIRJIG=$PUBDIR/small-lenny
2009-02-14 11:27:21 -01:00
export DATE_BUILD="$DATE-$BUILDNUM"
2010-11-14 13:08:02 -01:00
DI_DIST=lenny
DI_CODENAME=lenny
export DI_DIST
export DI_CODENAME
# 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=".small"
fi
2009-02-14 11:27:21 -01:00
finalise_arch_dir () {
ARCH=$1
INST_VER=$2
2010-11-14 13:08:02 -01:00
ARCH_ISO_DIR=$PUBDIRJIG/$ARCH/iso-cd
ARCH_JIGDO_DIR=$PUBDIRJIG/$ARCH/jigdo-cd
2009-02-14 11:27:21 -01:00
if [ -e $ARCH_ISO_DIR ] ; then
cd $ARCH_ISO_DIR
DATESTRING=`date -u`
2010-11-14 13:08:02 -01:00
$TOPDIR/debian-cd/tools/imagesums $ARCH_JIGDO_DIR $SUMS_EXTENSION
cp $ARCH_JIGDO_DIR/*SUMS* $ARCH_ISO_DIR
cd ..
~/build/mktorrent iso-cd/*iso
~/build/mklist iso-cd/*iso
2009-02-14 11:27:21 -01:00
cd $TOPDIR
fi
}
2010-11-14 13:08:02 -01:00
export RSYNC_TARGET=/mnt/nfs-cdimage/.lenny_bebble
rm -rf $PUBDIRJIG
2009-02-14 11:27:21 -01:00
if [ "$ARCHES"x = ""x ] ; then
ARCHES="alpha amd64 arm armel hppa i386 ia64 mips mipsel powerpc sparc multi-arch"
fi
cd $TOPDIR &&
if lockfile -r0 .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 ..
# Allow desktop selection in isolinux menu for i386 and amd64
# For other arches this is a harmless no-op
export DESKTOP=all
export KERNEL_PARAMS="desktop=all"
2009-02-14 11:27:21 -01:00
for arch in $ARCHES; do
echo "Building $arch:"
if [ "$arch" = "multi-arch" ] ; then
echo " i386/amd64/ppc lenny netinst"
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=2 \
TASK=debian-installer+kernel LOGAPPEND="-1" \
2010-11-14 13:08:02 -01:00
MAXISOS=ALL MAXJIGDOS=ALL DI=lenny DI_DIST="$DI_DIST" ./testingcds.lenny "amd64 i386 powerpc"
2009-02-14 11:27:21 -01:00
echo " alpha/hppa/ia64 lenny netinst"
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=2 \
TASK=debian-installer+kernel LOGAPPEND="-2" \
2010-11-14 13:08:02 -01:00
MAXISOS=ALL MAXJIGDOS=ALL DI=lenny DI_DIST="$DI_DIST" ./testingcds.lenny "alpha hppa ia64"
2009-02-14 11:27:21 -01:00
finalise_arch_dir $arch lenny
2010-11-14 13:08:02 -01:00
rm -rf $PUBDIRJIG/multi-arch
mv $PUBDIRJIG/multi $PUBDIRJIG/multi-arch
2009-02-14 11:27:21 -01:00
else # end of m-a
echo " $arch lenny bc"
2010-11-14 13:08:02 -01:00
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=1 TASK=debian-installer MAXISOS=ALL MAXJIGDOS=ALL DI=lenny DI_DIST="$DI_DIST" ./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
echo " $arch lenny netinst"
2010-11-14 13:08:02 -01:00
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=2 TASK=debian-installer+kernel MAXISOS=ALL MAXJIGDOS=ALL DI=lenny DI_DIST="$DI_DIST" ./testingcds.lenny "$arch"
2009-02-14 11:27:21 -01:00
finalise_arch_dir $arch lenny
fi # end of normal arch build
done
2010-11-14 13:08:02 -01:00
rsync -av --delete $PUBDIRJIG/ $RSYNC_TARGET/
2009-02-14 11:27:21 -01:00
cd $TOPDIR
rm -f .debian-cd.lock
fi