2 . /etc/grml/grml-buildd.conf
4 if [ -z "$MIRROR_DIRECTORY" ] ; then
5 echo "Error: \$MIRROR_DIRECTORY is not set. Exiting." >&2
9 if [ -z "$FLAVOURS" ] ; then
10 echo "Error: \$FLAVOURS is not set. Exiting." >&2
14 JOBS=/var/lib/jenkins/jobs
16 cd $MIRROR_DIRECTORY/new || exit 1
17 for f in $FLAVOURS; do
18 [ -d $JOBS/$f/builds ] || continue
19 [ -d ./$f ] && rm -r ./$f
20 for link in ./$f*.iso*; do rm $link; done
22 for buildpath in $JOBS/$f/builds/*_*; do
23 build=$(basename $buildpath)
25 for isofile in $buildpath/archive/grml_isos/*; do
26 [ -e $isofile ] && ln -s $isofile $f/$build/
28 [ -d $buildpath/archive/grml_logs ] && ln -s $buildpath/archive/grml_logs $f/$build/logs
30 latest=$(basename $(readlink $JOBS/$f/lastStable))
31 if [ -e $f/$latest/*.iso ]; then
32 ln -s $f/$latest/*.iso ${f}_latest.iso
33 ln -s $f/$latest/*.iso.md5 ${f}_latest.iso.md5
34 ln -s $f/$latest/*.iso.sha1 ${f}_latest.iso.sha1