X-Git-Url: http://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=0d89e9f5327b81e88ad22c7abf87d2da357e8c6b;hp=9f709dd5576ee095b26306454a6ae611e954d88a;hb=fa192226ebc815d9e2625d3fa6dcf9fd087b606e;hpb=a090ad82e812624a5e67b957f5b50878b28b457e diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 9f709dd..0d89e9f 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -1,10 +1,28 @@ #!/bin/sh -. main.sh || exit 1 +# Filename: /usr/share/grml-live/buildd/upload_isos.sh +# Purpose: upload grml ISOs to a rsync server +# Authors: grml-team (grml.org), (c) Michael Prokop +# Bug-Reports: see http://grml.org/bugs/ +# License: This file is licensed under the GPL v2 or any later version. +# Latest change: Sun Dec 16 22:07:02 CET 2007 [mika] +################################################################################ + +. /etc/grml/grml-buildd.conf || exit 1 +[ -n "$RSYNC_MIRROR" ] || exit 2 +[ -n "$ISO_DIR" ] || exit 3 + +cd $ISO_DIR || exit 4 + umask 002 -cd /srv/grml-isos || exit 1 for file in *.iso ; do - [ -f "${file}.md5" ] || md5sum $file > ${file}.md5 - chmod 664 $file - chmod 664 ${file}.md5 + [ -f "${file}.md5" ] || md5sum "$file" > "${file}".md5 + chmod 664 "$file" + chmod 664 "${file}".md5 done -rsync --partial -az --quiet $ISO_DIR/* grml-build@debian.netcologne.de:/home/ftp/www.grml.org/daily/ + +for flavour in grml-small_etch grml-small_sid grml-medium_etch grml-medium_sid grml_sid grml_etch \ + grml64-small_etch grml64-small_sid grml64-medium_etch grml64-medium_sid grml64_sid grml64_etch ; do + rsync --times --partial -az --quiet $flavour* $RSYNC_MIRROR/$flavour/ +done + +## END OF FILE #################################################################