X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=buildd%2Fupload_isos.sh;h=29960aefcd9319db751d56eeea817f73de37a3ff;hp=0d89e9f5327b81e88ad22c7abf87d2da357e8c6b;hb=ae0db7b41fc17aaec906c7d00dc1661730a5d871;hpb=fa192226ebc815d9e2625d3fa6dcf9fd087b606e diff --git a/buildd/upload_isos.sh b/buildd/upload_isos.sh index 0d89e9f..29960ae 100755 --- a/buildd/upload_isos.sh +++ b/buildd/upload_isos.sh @@ -4,7 +4,6 @@ # 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 @@ -15,14 +14,18 @@ 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 -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/ +for distri in squeeze wheezy sid ; do + for flavour in grml-small_$distri grml-medium_$distri grml_$distri \ + grml64-small_$distri grml64-medium_$distri grml64_$distri ; do + if ls $flavour* 1>/dev/null 2>&1 ; then + rsync --times --partial -az --quiet $flavour* $RSYNC_MIRROR/$flavour/ + fi + done done ## END OF FILE #################################################################