0d89e9f5327b81e88ad22c7abf87d2da357e8c6b
[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 # Latest change: Sun Dec 16 22:07:02 CET 2007 [mika]
8 ################################################################################
9
10 . /etc/grml/grml-buildd.conf || exit 1
11 [ -n "$RSYNC_MIRROR" ] || exit 2
12 [ -n "$ISO_DIR" ] || exit 3
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     chmod 664 "$file"
20     chmod 664 "${file}".md5
21 done
22
23 for flavour in grml-small_etch grml-small_sid grml-medium_etch grml-medium_sid grml_sid grml_etch \
24                grml64-small_etch grml64-small_sid grml64-medium_etch grml64-medium_sid grml64_sid grml64_etch ; do
25     rsync --times --partial -az --quiet $flavour* $RSYNC_MIRROR/$flavour/
26 done
27
28 ## END OF FILE #################################################################