Adjust 95-package-information for new log layout
[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: Mon Oct 22 19:50:36 CEST 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 rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
23
24 ## END OF FILE #################################################################