X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=9755452f4ddc8aa092e96fb7710d2b66cb33e52f;hb=d2e7b80f6c682a938587b159ef3d482536e63e90;hp=9f709dd5576ee095b26306454a6ae611e954d88a;hpb=a090ad82e812624a5e67b957f5b50878b28b457e;p=grml-live.git diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 9f709dd..9755452 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -1,10 +1,22 @@ #!/bin/sh -. main.sh || exit 1 +# Filename: /usr/share/grml-live/buildd/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: Mon Oct 22 19:11:33 CEST 2007 [mika] +################################################################################ + +. /usr/share/grml-live/buildd/buildd/functions.sh || exit 1 +[ -n "$RSYNC_MIRROR" ] || exit 2 +cd $ISO_DIR || exit 3 + 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 done -rsync --partial -az --quiet $ISO_DIR/* grml-build@debian.netcologne.de:/home/ftp/www.grml.org/daily/ +rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR + +## END OF FILE #################################################################