#!/bin/bash
ARCHES="i686 x86_64"
DATE=`date +%Y%m%d.%H`
RELEASE=19-Nightly-$DATE
VERSION=19
TARGET=f19
GITHASH=$(git rev-parse --short HEAD)
#flatten kickstarts
# cd spins
SPINS="design-suite desktop kde lxde security soas xfce"
cat << EOF
Nightly live composes (Fedora 19 branched)
Nightly live composes (Fedora 19 branched)
This page lists testing composes created nightly for all currently approved
spins from the Spins SIG
git repository.
Any questions or problems, please post to the Spins SIG
mailing list.
These composes are built against the Fedora 19 branched repo.
If you follow the Koji link for some compose, look for State closed
and then you'll see the ISO image in the Output section. If State is
failed, the build failed and you have to wait for
a next day compose or download some older compose.
Date | Fedora Spin | Architecture | Size | Link |
EOF
for spin in $SPINS
do
declare -l lspin
lspin=$spin
ksflatten fedora-livecd-$lspin.ks -o fedora-livecd-$lspin-$GITHASH.ks >& /dev/null
for ARCH in $ARCHES
do
if [[ $ARCH == i686 ]]
then BASEARCH=i386
else BASEARCH=$ARCH
fi
OUTPUT=`koji spin-livecd --scratch --noprogress --nowait --repo=http://infrastructure.fedoraproject.org/pub/fedora/linux/development/$VERSION/$BASEARCH/os/ Fedora-$RELEASE-$ARCH-Live-$spin $DATE $TARGET $ARCH fedora-livecd-$lspin-$GITHASH.ks`
#OUTPUT="Created task: 2864741"
TASK=`echo $OUTPUT | head -1 | grep Created | awk -F: '{print $2}' | sed -e 's/ //'`
echo "$DATE | $spin | $ARCH | 700 MB | Task info |
"
done
done
# dvd spins
SPINS="robotics scientific-kde electronic-lab games"
for spin in $SPINS
do
declare -l lspin
lspin=$spin
ksflatten fedora-livedvd-$lspin.ks -o fedora-livedvd-$lspin-$GITHASH.ks >& /dev/null
for ARCH in $ARCHES
do
if [[ $ARCH == i686 ]]
then BASEARCH=i386
else BASEARCH=$ARCH
fi
OUTPUT=`koji spin-livecd --scratch --noprogress --nowait --repo=http://infrastructure.fedoraproject.org/pub/fedora/linux/development/$VERSION/$BASEARCH/os/ Fedora-$RELEASE-$ARCH-Live-$spin $DATE $TARGET $ARCH fedora-livedvd-$lspin-$GITHASH.ks`
#OUTPUT="Created task: 2864741"
TASK=`echo $OUTPUT | head -1 | grep Created | awk -F: '{print $2}' | sed -e 's/ //'`
echo "$DATE | $spin | $ARCH | 4 GB | Task info |
"
done
done
# 1g spins
SPINS="kde jam-kde"
for spin in $SPINS
do
declare -l lspin
lspin=$spin
ksflatten fedora-live-$lspin.ks -o fedora-live-$lspin-$GITHASH.ks >& /dev/null
for ARCH in $ARCHES
do
if [[ $ARCH == i686 ]]
then BASEARCH=i386
else BASEARCH=$ARCH
fi
OUTPUT=`koji spin-livecd --scratch --noprogress --nowait --repo=http://infrastructure.fedoraproject.org/pub/fedora/linux/development/$VERSION/$BASEARCH/os/ Fedora-$RELEASE-$ARCH-Live-$spin $DATE $TARGET $ARCH fedora-live-$lspin-$GITHASH.ks`
#OUTPUT="Created task: 2864741"
TASK=`echo $OUTPUT | head -1 | grep Created | awk -F: '{print $2}' | sed -e 's/ //'`
echo "$DATE | $spin | $ARCH | 2 GB | Task info |
"
done
done
cat << EOF
The composes are kept in Koji for 2 weeks.
View older composes...
EOF