Add graphicoreBitmapFont0-Light.otf to grml-live.
[grml-live.git] / buildd / upload_isos.sh
1 #!/bin/sh
2 # Filename:      /usr/share/grml-live/buildd/upload_isos.sh
3 # Purpose:       upload grml ISOs to a rsync server
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 ################################################################################
8
9 . /etc/grml/grml-buildd.conf || exit 1
10 [ -n "$RSYNC_MIRROR" ] || exit 2
11 [ -n "$ISO_DIR" ] || exit 3
12 [ -n "$FLAVOURS" ] || exit 5
13
14 cd $ISO_DIR || exit 4
15
16 umask 002
17 for file in *.iso ; do
18     [ -f "${file}.md5" ]  || md5sum "$file" > "${file}".md5
19     [ -f "${file}.sha1" ] || sha1sum "$file" > "${file}".sha1
20     chmod 664 "${file}" "${file}".md5 "${file}".sha1
21 done
22
23 for flavour in $FLAVOURS; do
24   if ls $flavour* 1>/dev/null 2>&1 ; then
25     rsync --times --partial -az --quiet $flavour* $RSYNC_MIRROR/$flavour/
26   fi
27 done
28
29 ## END OF FILE #################################################################