X-Git-Url: https://git.grml.org/?a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=a18d3e3722e27e4c6932752379b3f5977febe6be;hb=005cdc1ea39899e025f302f05e16fb93bb66fee9;hp=8b5462d02d6c20ac873cda39ef69e5567221239d;hpb=6decb9b013be4c016fa61afbf86655c8b7afc734;p=grml-live.git diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 8b5462d..a18d3e3 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -4,22 +4,26 @@ # 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 09 18:10:08 CET 2007 [mika] ################################################################################ . /etc/grml/grml-buildd.conf || exit 1 [ -n "$RSYNC_MIRROR" ] || exit 2 [ -n "$ISO_DIR" ] || exit 3 +[ -n "$FLAVOURS" ] || exit 5 cd $ISO_DIR || exit 4 umask 002 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 + [ -f "${file}.sha1" ] || sha1sum "$file" > "${file}".sha1 + chmod 664 "${file}" "${file}".md5 "${file}".sha1 done -rsync --times --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR +for flavour in $FLAVOURS; do + if ls $flavour* 1>/dev/null 2>&1 ; then + rsync --times --partial -az --quiet $flavour* $RSYNC_MIRROR/$flavour/ + fi +done ## END OF FILE #################################################################