2 # Filename: /usr/share/grml-live/buildd/link_latest.sh
3 # Purpose: create symlinks to the most recent snapshot ISOs
4 # Authors: grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
5 # Bug-Reports: see http://grml.org/bugs/
6 # License: This file is licensed under the GPL v2 or any later version.
7 ################################################################################
11 . /etc/grml/grml-buildd.conf
13 [ -n "$MIRROR_DIRECTORY" ] || exit 1
14 cd $MIRROR_DIRECTORY || exit 2
16 for flavour in grml-small_lenny grml-small_sid grml-medium_lenny grml-medium_sid grml_sid grml_lenny \
17 grml64-small_lenny grml64-small_sid grml64-medium_lenny grml64-medium_sid grml64_sid grml64_lenny ; do
18 ISO="$(ls -1 $flavour/*.iso | tail -1)"
19 if [ -n "$ISO" ] ; then
20 ln -sf $ISO $(basename ${ISO%%_[0-9]*})_latest.iso
21 ln -sf ${ISO}.md5 $(basename ${ISO%%_[0-9]*})_latest.iso.md5
22 ln -sf ${ISO}.sha1 $(basename ${ISO%%_[0-9]*})_latest.iso.sha1
26 ## END OF FILE #################################################################