Big buildd update
[grml-live.git] / buildd / upload_isos.sh
1 #!/bin/sh
2 # Filename:      /usr/share/grml-live/buildd/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: Mon Oct 22 19:11:33 CEST 2007 [mika]
8 ################################################################################
9
10 . /usr/share/grml-live/buildd/buildd/functions.sh || exit 1
11 [ -n "$RSYNC_MIRROR" ] || exit 2
12 cd $ISO_DIR || exit 3
13
14 umask 002
15 for file in *.iso ; do
16     [ -f "${file}.md5" ] || md5sum $file > ${file}.md5
17     chmod 664 $file
18     chmod 664 ${file}.md5
19 done
20 rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
21
22 ## END OF FILE #################################################################