2010-07-02 23:24:56 +00:00
|
|
|
#!/bin/bash
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2013-04-30 18:54:11 +00:00
|
|
|
TOPDIR=$(dirname $0)
|
|
|
|
if [ "$TOPDIR" = "." ] ; then
|
|
|
|
TOPDIR=`pwd`
|
|
|
|
fi
|
|
|
|
export TOPDIR
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
. $TOPDIR/settings.sh
|
|
|
|
|
2017-06-06 12:10:48 +00:00
|
|
|
BUILDLOCK=$HOME/.debian-cd.lock
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
export PUBDIRJIG=$PUBDIR/weekly-builds
|
2019-02-19 17:05:47 -01:00
|
|
|
export PUBDIROSTRACE=${OUT_BASE}/.live/trace-os
|
|
|
|
export PUBDIRLIVETRACE=${OUT_BASE}/.live/trace-live
|
2008-11-23 16:59:53 -01:00
|
|
|
export DATE_BUILD="$DATE-$BUILDNUM"
|
2019-02-19 17:05:47 -01:00
|
|
|
export CD_I_F="${OUT_BASE}/unofficial/non-free/cd-including-firmware"
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2010-11-14 14:17:33 -01:00
|
|
|
. $TOPDIR/common.sh
|
2010-07-02 23:24:56 +00:00
|
|
|
|
2012-07-06 00:30:17 +00:00
|
|
|
# Make sure the machine isn't rebooted while we're busy
|
|
|
|
reboot_lock
|
|
|
|
|
2013-04-30 18:54:11 +00:00
|
|
|
# Uncomment the following to use daily d-i builds for these images
|
2013-01-20 00:03:24 -01:00
|
|
|
# rather than what's in the archive
|
|
|
|
USE_DAILY_DI=Y
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2013-01-20 00:03:24 -01:00
|
|
|
if [ "$RELEASE_BUILD"x = ""x ] ; then
|
2019-02-19 17:05:47 -01:00
|
|
|
export RSYNC_TARGET=${OUT_BASE}/weekly-builds
|
2015-04-20 11:41:47 +00:00
|
|
|
export RSYNC_TARGET_FIRMWARE=${CD_I_F}/weekly-builds
|
2013-01-20 00:03:24 -01:00
|
|
|
else
|
2019-02-19 17:05:47 -01:00
|
|
|
export RSYNC_TARGET=${OUT_BASE}/.${RELEASE_BUILD}/debian-cd
|
2015-04-20 11:41:47 +00:00
|
|
|
export RSYNC_TARGET_FIRMWARE=${CD_I_F}/.${RELEASE_BUILD}/debian-cd
|
2019-02-19 17:05:47 -01:00
|
|
|
export CONF=~/build.${CODENAME}/CONF.sh.${RELEASE_BUILD}
|
2013-01-20 00:03:24 -01:00
|
|
|
export RELEASE_BUILD=$RELEASE_BUILD
|
|
|
|
# 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.
|
2015-04-20 11:41:47 +00:00
|
|
|
export EXTENSION=".large"
|
2013-01-20 00:03:24 -01:00
|
|
|
USE_DAILY_DI=N
|
2019-02-19 17:05:47 -01:00
|
|
|
NOSNAP=1
|
2009-08-22 22:44:44 +00:00
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
. images4testing_d-i
|
|
|
|
|
2009-08-22 22:44:44 +00:00
|
|
|
if [ "$USE_DAILY_DI"x = "Y"x ] ; then
|
|
|
|
export DI=sid
|
|
|
|
export DI_WWW_HOME=default
|
2013-04-30 18:54:11 +00:00
|
|
|
export DI_DIR="$ARCH_DI_DIR"
|
2012-07-06 00:30:17 +00:00
|
|
|
else
|
|
|
|
unset DI_WWW_HOME
|
2009-08-22 22:44:44 +00:00
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
export DI_DIST
|
|
|
|
export DI_CODENAME
|
2019-02-19 17:05:47 -01:00
|
|
|
export OUT_FREE_SID=${PUBDIRJIG}
|
|
|
|
export OUT_FREE_TST=${PUBDIRJIG}
|
2017-06-06 12:10:48 +00:00
|
|
|
export OUT_FW_SID=${PUBDIRJIG}-firmware
|
|
|
|
export OUT_FW_TST=${PUBDIRJIG}-firmware
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2010-07-02 23:24:56 +00:00
|
|
|
BUILDS_RUNNING=""
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
#export NOEDU=1
|
2017-06-06 12:10:48 +00:00
|
|
|
#export NOOPENSTACK=1
|
|
|
|
#export NOLIVE=1
|
2015-04-20 11:41:47 +00:00
|
|
|
|
2013-01-20 00:03:24 -01:00
|
|
|
if lockfile -r0 $BUILDLOCK ; then
|
2015-04-20 11:41:47 +00:00
|
|
|
# echo "NOT checking for git updates"
|
2019-02-19 17:05:47 -01:00
|
|
|
rm -f $PUBDIRLIVETRACE $PUBDIROSTRACE
|
|
|
|
~/build.${CODENAME}/cronjob.weekly-live &
|
|
|
|
|
2015-04-20 11:41:47 +00:00
|
|
|
echo "git update debian-cd"
|
|
|
|
cd debian-cd && git pull ; cd ..
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
mkdir -p ${PUBDIRJIG}/trace
|
|
|
|
mkdir -p $RSYNC_TARGET/trace $RSYNC_TARGET_FIRMWARE/trace
|
|
|
|
|
2017-06-06 12:10:48 +00:00
|
|
|
# Keep track of the serial for the archive we're building against,
|
|
|
|
# for later archive diffing for release announce preparation:
|
|
|
|
serial=$(get_archive_serial)
|
2019-02-19 17:05:47 -01:00
|
|
|
echo "$serial" > $RSYNC_TARGET/trace/archive-serial
|
|
|
|
echo "$serial" > $RSYNC_TARGET_FIRMWARE/trace/archive-serial
|
2017-06-06 12:10:48 +00:00
|
|
|
|
2015-04-20 11:41:47 +00:00
|
|
|
# Work out the default desktop, and do *not* build a CD1 for that
|
|
|
|
# desktop - it'll be done in the full set anyway
|
2017-06-06 12:10:48 +00:00
|
|
|
TASKSEL_DEB=$(ARCHES=amd64 ./debian-cd/tools/which_deb ${MIRROR} ${DI_CODENAME} task-desktop binary)
|
2015-04-20 11:41:47 +00:00
|
|
|
DEFAULT_DESKTOP=$(dpkg --info ${MIRROR}/${TASKSEL_DEB} |
|
|
|
|
awk '/Recommends: task-.*-desktop/ {split($2,a,"-"); print toupper(a[2])}')
|
|
|
|
echo default desktop is $DEFAULT_DESKTOP, drop CD1 for that desktop
|
|
|
|
export NO${DEFAULT_DESKTOP}CD=1
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2010-07-02 23:24:56 +00:00
|
|
|
# echo "NOT checking for popcon updates"
|
2013-04-30 18:54:11 +00:00
|
|
|
if [ "$NOPOPCON"x = ""x ] ; then
|
2019-02-19 17:05:47 -01:00
|
|
|
cd debian-cd && ./tools/update_popcon tasks/${CODENAME}/popularity-contest
|
|
|
|
error=$?
|
|
|
|
if [ $error != 0 ]; then
|
|
|
|
echo "popcon update failed, error $error";
|
|
|
|
echo "aborting";
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
cd ..
|
2013-04-30 18:54:11 +00:00
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
|
|
|
|
cd $TOPDIR
|
|
|
|
for arch in $ARCHES; do
|
2012-07-06 00:30:17 +00:00
|
|
|
# Reset envvars for next iteration
|
2010-07-02 23:24:56 +00:00
|
|
|
arch_error=""
|
2013-04-30 18:54:11 +00:00
|
|
|
arch_start=`now`
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
rm -rf ${PUBDIRJIG}/$arch ${PUBDIRJIG}-firmware/$arch
|
|
|
|
for i in iso-cd jigdo-cd; do
|
|
|
|
mkdir -p ${PUBDIRJIG}/$arch/$i
|
|
|
|
if $(arch_has_firmware $arch) ; then
|
|
|
|
mkdir -p ${PUBDIRJIG}-firmware/$arch/$i
|
2015-04-20 11:41:47 +00:00
|
|
|
fi
|
2019-02-19 17:05:47 -01:00
|
|
|
done
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
if [ "$arch" != multi-arch ] ; then
|
2012-07-06 00:30:17 +00:00
|
|
|
# export DI_DIR="$ARCH_DI_DIR"
|
|
|
|
export VARIANTS=""
|
2008-11-23 16:59:53 -01:00
|
|
|
|
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
|
2012-07-06 00:30:17 +00:00
|
|
|
i386|amd64)
|
2013-01-20 00:03:24 -01:00
|
|
|
export MAXISOS=3
|
2012-07-06 00:30:17 +00:00
|
|
|
export MAXJIGDOS=ALL
|
|
|
|
export VARIANTS=xen
|
|
|
|
# Special case: make DVD1 fit on a 4GB USB
|
|
|
|
# stick (#612074)
|
|
|
|
export FORCE_CD_SIZE1=STICK4GB
|
|
|
|
;;
|
|
|
|
source)
|
2009-08-22 22:44:44 +00:00
|
|
|
export MAXISOS=ALL; export MAXJIGDOS=ALL ;;
|
2015-04-20 11:41:47 +00:00
|
|
|
powerpc|arm64)
|
|
|
|
# Special cases: make DVD1 fit on a 4GB USB
|
|
|
|
# stick
|
2013-01-20 00:03:24 -01:00
|
|
|
export FORCE_CD_SIZE1=STICK4GB
|
|
|
|
export MAXISOS=1; export MAXJIGDOS=ALL ;;
|
2009-08-22 22:44:44 +00:00
|
|
|
*)
|
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" &
|
2017-06-06 12:10:48 +00:00
|
|
|
|
|
|
|
# Single DVD with firmware
|
|
|
|
if $(arch_has_firmware $arch) ; then
|
|
|
|
case $arch in
|
|
|
|
i386|amd64)
|
|
|
|
export VARIANTS=xen
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
build_started DVDFIRMWARE
|
|
|
|
COMPLETE=0 INSTALLER_CD=I \
|
|
|
|
FORCE_FIRMWARE=1 CDNAME=firmware \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all \
|
|
|
|
TASK=Debian-all \
|
|
|
|
MAXISOS=1 MAXJIGDOS=1 \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
fi
|
|
|
|
unset FORCE_CD_SIZE1
|
2009-08-22 22:44:44 +00:00
|
|
|
fi
|
|
|
|
|
2017-06-06 12:10:48 +00:00
|
|
|
# Full BD set
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$NOBD"x = ""x ] ; then
|
2012-07-06 00:30:17 +00:00
|
|
|
unset DESKTOP
|
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
|
2012-07-06 00:30:17 +00:00
|
|
|
export VARIANTS=xen
|
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
|
|
|
|
|
2012-07-06 00:30:17 +00:00
|
|
|
# Full DLBD set
|
2013-04-30 18:54:11 +00:00
|
|
|
if [ "$NOBD"x = ""x ] && [ "$NODLBD"x = ""x ] ; then
|
2012-07-06 00:30:17 +00:00
|
|
|
unset DESKTOP
|
|
|
|
export MAX_PKG_SIZE=999999999999
|
|
|
|
case $arch in
|
|
|
|
i386|amd64|source)
|
|
|
|
export MAXISOS=0
|
|
|
|
export MAXJIGDOS=ALL
|
|
|
|
export DESKTOP=all
|
|
|
|
export VARIANTS=xen
|
|
|
|
build_started DLBD
|
|
|
|
INSTALLER_CD=D TASK=Debian-all \
|
|
|
|
KERNEL_PARAMS='desktop=all' \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
;;
|
|
|
|
*)
|
|
|
|
echo " Not running DLBD build for $arch"
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
fi
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# individual desktop cd #1: xfce only these days
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$arch"x != "source"x ] && [ "$NOCD"x = ""x ] ; then
|
2017-06-06 12:10:48 +00:00
|
|
|
if [ "$NOXFCECD"x = ""x ] ; then
|
2013-01-20 00:03:24 -01:00
|
|
|
export MAX_PKG_SIZE=300000000
|
|
|
|
export DESKTOP=xfce
|
|
|
|
export MAXISOS=1; export MAXJIGDOS=1
|
2017-06-06 12:10:48 +00:00
|
|
|
export VARIANTS=""
|
|
|
|
build_started XFCECD
|
2013-01-20 00:03:24 -01:00
|
|
|
INSTALLER_CD=5 TASK=Debian-xfce \
|
2017-06-06 12:10:48 +00:00
|
|
|
KERNEL_PARAMS='desktop=xfce' \
|
2019-02-19 17:05:47 -01:00
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 \
|
2017-06-06 12:10:48 +00:00
|
|
|
MAXCDS=1 MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
fi
|
2010-07-02 23:24:56 +00:00
|
|
|
fi
|
|
|
|
|
2013-04-30 18:54:11 +00:00
|
|
|
# netinst CD
|
|
|
|
if [ "$arch"x != "source"x ] && [ "$NOCD"x = ""x ] && [ "$NONI"x = ""x ] ; then
|
|
|
|
export MAX_PKG_SIZE=300000000
|
|
|
|
export DESKTOP=all
|
|
|
|
export MAXISOS=1; export MAXJIGDOS=1
|
|
|
|
export VARIANTS=""
|
|
|
|
|
|
|
|
build_started NI
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=2 \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all VARIANTS=xen \
|
|
|
|
TASK=debian-installer+kernel MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
|
2015-04-20 11:41:47 +00:00
|
|
|
if $(arch_has_firmware $arch) ; then
|
|
|
|
build_started NIFIRMWARE
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=C \
|
|
|
|
FORCE_FIRMWARE=1 CDNAME=firmware \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all VARIANTS=xen \
|
|
|
|
TASK=debian-installer+kernel MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
fi
|
|
|
|
|
2017-06-06 12:10:48 +00:00
|
|
|
# Special Mac-only builds
|
|
|
|
if [ "$arch" = "i386" ] || [ "$arch" = "amd64" ] ; then
|
2015-04-20 11:41:47 +00:00
|
|
|
build_started MACNI
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=F \
|
|
|
|
BOOT_METHODS=BIOS CDNAME="debian-mac" \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all VARIANTS=xen \
|
|
|
|
TASK=debian-installer+kernel MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
fi
|
2013-04-30 18:54:11 +00:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# Special debian-edu builds, only minor tweaks. #846006
|
|
|
|
if [ "$NOEDU"x = ""x ] ; then
|
|
|
|
if [ "$arch" = "i386" ] || [ "$arch" = "amd64" ] ; then
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# netinst
|
|
|
|
build_started EDUNI
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=G \
|
|
|
|
CDNAME=debian-edu \
|
|
|
|
DEBIAN_EDU=1 \
|
|
|
|
KERNEL_PARAMS="modules=debian-edu-install-udeb" \
|
|
|
|
DESKTOP=xfce VARIANTS=xen \
|
|
|
|
EXCLUDE=debian-edu-exclude \
|
|
|
|
UDEB_EXCLUDE="$BASEDIR"/data/$CODENAME/udeb_exclude \
|
|
|
|
TASK=Debian-edu-netinst \
|
|
|
|
MAXISOS=1 MAXJIGDOS=1 \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
2015-04-20 11:41:47 +00:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# netinst with firmware
|
|
|
|
build_started EDUNIFIRMWARE
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=H \
|
|
|
|
FORCE_FIRMWARE=1 \
|
|
|
|
CDNAME=firmware-edu \
|
|
|
|
DEBIAN_EDU=1 \
|
|
|
|
KERNEL_PARAMS="modules=debian-edu-install-udeb" \
|
|
|
|
DESKTOP=xfce VARIANTS=xen \
|
|
|
|
EXCLUDE=debian-edu-exclude \
|
|
|
|
UDEB_EXCLUDE="$BASEDIR"/data/$CODENAME/udeb_exclude \
|
|
|
|
TASK=Debian-edu-netinst \
|
|
|
|
MAXISOS=1 MAXJIGDOS=1 \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
|
|
|
|
if [ "$NOUSB"x = ""x ] ; then
|
|
|
|
# USB "BD" image
|
|
|
|
build_started EDUUSB
|
|
|
|
NORECOMMENDS=0 COMPLETE=0 INSTALLER_CD=K \
|
2019-03-09 18:31:15 -01:00
|
|
|
CDNAME=debian-edu \
|
2019-02-19 17:05:47 -01:00
|
|
|
DEBIAN_EDU=1 \
|
|
|
|
KERNEL_PARAMS="modules=debian-edu-install-udeb" \
|
|
|
|
DESKTOP=xfce VARIANTS=xen \
|
|
|
|
EXCLUDE=debian-edu-exclude \
|
|
|
|
TASK=Debian-edu-full \
|
|
|
|
MAXISOS=1 MAXJIGDOS=1 \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
|
|
|
|
# USB "BD" image with firmware
|
|
|
|
build_started EDUUSBFIRMWARE
|
|
|
|
NORECOMMENDS=0 COMPLETE=0 INSTALLER_CD=L \
|
|
|
|
FORCE_FIRMWARE=1 \
|
2019-03-09 18:31:15 -01:00
|
|
|
CDNAME=firmware-edu \
|
2019-02-19 17:05:47 -01:00
|
|
|
DEBIAN_EDU=1 \
|
|
|
|
KERNEL_PARAMS="modules=debian-edu-install-udeb" \
|
|
|
|
DESKTOP=xfce VARIANTS=xen \
|
|
|
|
EXCLUDE=debian-edu-exclude \
|
|
|
|
TASK=Debian-edu-full \
|
|
|
|
MAXISOS=1 MAXJIGDOS=1 \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "$arch" &
|
|
|
|
fi
|
2017-06-06 12:10:48 +00:00
|
|
|
fi
|
2015-04-20 11:41:47 +00:00
|
|
|
fi
|
2013-04-30 18:54:11 +00:00
|
|
|
fi
|
2009-08-23 00:12:41 +00:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# We've spawned a load of builds; wait here for them all
|
|
|
|
# to finish
|
|
|
|
catch_parallel_builds
|
|
|
|
|
|
|
|
else # multi-arch
|
2017-06-06 12:10:48 +00:00
|
|
|
|
|
|
|
if [ "$NOCD"x = ""x ] && [ "$NONI"x = ""x ] ; then
|
2013-04-30 18:54:11 +00:00
|
|
|
export DESKTOP=all
|
|
|
|
build_started NI
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=2 \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all VARIANTS=xen \
|
|
|
|
TASK=debian-installer+kernel \
|
|
|
|
MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "amd64 i386" &
|
|
|
|
|
2015-04-20 11:41:47 +00:00
|
|
|
if $(arch_has_firmware $arch) ; then
|
|
|
|
build_started NIFIRMWARE
|
|
|
|
OMIT_RELEASE_NOTES=1 OMIT_MANUAL=1 NORECOMMENDS=1 \
|
|
|
|
NOSUGGESTS=1 COMPLETE=0 INSTALLER_CD=C \
|
|
|
|
FORCE_FIRMWARE=1 CDNAME=firmware \
|
|
|
|
KERNEL_PARAMS="desktop=all" \
|
|
|
|
DESKTOP=all VARIANTS=xen \
|
|
|
|
TASK=debian-installer+kernel \
|
|
|
|
MAXISOS=ALL MAXJIGDOS=ALL \
|
|
|
|
DI=${DI} DI_DIST=${DI} \
|
|
|
|
./testingcds "amd64 i386" &
|
|
|
|
fi
|
2017-06-06 12:10:48 +00:00
|
|
|
|
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
# We've spawned a load of builds; wait here for them all
|
|
|
|
# to finish
|
2013-04-30 18:54:11 +00:00
|
|
|
catch_parallel_builds
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
fi # end of multi-arch
|
|
|
|
|
|
|
|
if [ "$RELEASE_BUILD"x = ""x ] ; then
|
|
|
|
echo "$arch: Not generating torrent files for a non-release build"
|
|
|
|
else
|
|
|
|
echo "$arch: Generating torrent files"
|
|
|
|
~/build.${CODENAME}/mktorrent ${PUBDIRJIG}/$arch/iso-*/*.iso
|
|
|
|
if [ -d ${PUBDIRJIG}-firmware/$arch ] ; then
|
|
|
|
~/build.${CODENAME}/mktorrent ${PUBDIRJIG}-firmware/$arch/iso-*/*.iso
|
2015-04-20 11:41:47 +00:00
|
|
|
fi
|
2019-02-19 17:05:47 -01:00
|
|
|
fi
|
|
|
|
|
|
|
|
echo "$arch: Generating checksum files"
|
|
|
|
for dir in ${PUBDIRJIG}/$arch/jigdo-*; do
|
|
|
|
generate_checksums_for_arch $arch $dir
|
|
|
|
done
|
|
|
|
if [ -d ${PUBDIRJIG}-firmware/$arch ] ; then
|
|
|
|
for dir in ${PUBDIRJIG}-firmware/$arch/jigdo-*; do
|
|
|
|
generate_checksums_for_arch $arch $dir
|
|
|
|
done
|
|
|
|
fi
|
2015-04-20 11:41:47 +00:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
if [ "$NOSYNC"x = ""x ] ; then
|
|
|
|
if [ "$arch_error"x = "none"x ] || [ "$arch_error"x = ""x ] ; then
|
|
|
|
if [ "$RELEASE_BUILD"x = ""x ] ; then
|
|
|
|
echo "Signing checksums files using the automatic key"
|
|
|
|
~/build.${CODENAME}/sign-images ${PUBDIRJIG} $arch
|
|
|
|
fi
|
|
|
|
echo " Running ~/build.${CODENAME}/iso_run ${PUBDIRJIG}/ $RSYNC_TARGET/ $arch \"\" &"
|
|
|
|
~/build.${CODENAME}/iso_run ${PUBDIRJIG}/ $RSYNC_TARGET/ $arch "" &
|
|
|
|
if [ -d ${PUBDIRJIG}-firmware/$arch ] ; then
|
2015-04-20 11:41:47 +00:00
|
|
|
if [ "$RELEASE_BUILD"x = ""x ] ; then
|
|
|
|
echo "Signing checksums files using the automatic key"
|
2019-02-19 17:05:47 -01:00
|
|
|
~/build.${CODENAME}/sign-images ${PUBDIRJIG}-firmware $arch
|
2015-04-20 11:41:47 +00:00
|
|
|
fi
|
2019-02-19 17:05:47 -01:00
|
|
|
echo " Running ~/build.${CODENAME}/iso_run ${PUBDIRJIG}-firmware/ $RSYNC_TARGET_FIRMWARE/ $arch firmware &"
|
|
|
|
~/build.${CODENAME}/iso_run ${PUBDIRJIG}-firmware/ $RSYNC_TARGET_FIRMWARE/ $arch firmware &
|
2010-07-02 23:24:56 +00:00
|
|
|
fi
|
2019-02-19 17:05:47 -01:00
|
|
|
else
|
|
|
|
~/build.${CODENAME}/report_build_error ${PUBDIRJIG} $RSYNC_TARGET $arch "$arch_error"
|
|
|
|
if [ -d ${PUBDIRJIG}-firmware/$arch ] ; then
|
|
|
|
~/build.${CODENAME}/report_build_error ${PUBDIRJIG}-firmware $RSYNC_TARGET_FIRMWARE/ $arch "$arch_error"
|
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
2019-02-19 17:05:47 -01:00
|
|
|
fi
|
2009-08-22 22:44:44 +00:00
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
done
|
|
|
|
|
2011-02-02 22:35:52 -01:00
|
|
|
if [ "$NOFW"x = ""x ] ; then
|
2019-02-19 17:05:47 -01:00
|
|
|
~/build.${CODENAME}/generate_firmware_images ${CODENAME}
|
|
|
|
~/build.${CODENAME}/generate_firmware_images sid
|
2011-02-02 22:35:52 -01:00
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
if [ $(hostname) = casulana ]; then
|
|
|
|
rsync_to_pettersson ${OUT_BASE}/cd-sources/ cd-sources/
|
|
|
|
publish_on_pettersson cd-sources
|
|
|
|
fi
|
|
|
|
|
2008-11-23 16:59:53 -01:00
|
|
|
if [ "$NOSNAP"x = ""x ] ; then
|
2019-02-19 17:05:47 -01:00
|
|
|
if [ $(hostname) = casulana ]; then
|
|
|
|
mkdir -p /tmp/snapshots
|
|
|
|
rsync_to_pettersson /tmp/snapshots/ snapshots/
|
|
|
|
publish_on_pettersson snapshots
|
|
|
|
else
|
|
|
|
~/bin/weekly-snapshots
|
|
|
|
fi
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|
|
|
|
|
2015-04-20 11:41:47 +00:00
|
|
|
catch_live_builds
|
|
|
|
|
2019-02-19 17:05:47 -01:00
|
|
|
for DIR in $RSYNC_TARGET $RSYNC_TARGET_FIRMWARE; do
|
|
|
|
date -u > $DIR/trace/cdimage.debian.org
|
|
|
|
if [ $(hostname) = casulana ]; then
|
|
|
|
PETOUT=${DIR##${OUT_BASE}/}
|
|
|
|
rsync_to_pettersson $DIR/trace/ ${PETOUT}/trace/
|
|
|
|
publish_on_pettersson ${PETOUT}/trace
|
|
|
|
fi
|
|
|
|
done
|
2013-01-20 00:03:24 -01:00
|
|
|
rm -f $BUILDLOCK
|
2008-11-23 16:59:53 -01:00
|
|
|
fi
|