Do not install package 'grml' via GRMLBASE; generate md5sum of ISO; update buildd/
[grml-live.git] / buildd / upload_isos.sh
index 02630f5..8b5462d 100755 (executable)
@@ -4,19 +4,22 @@
 # Authors:       grml-team (grml.org), (c) Michael Prokop <mika@grml.org>
 # 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]
+# Latest change: Sun Dec 09 18:10:08 CET 2007 [mika]
 ################################################################################
 
-. /usr/share/grml-live/buildd/functions.sh || exit 1
+. /etc/grml/grml-buildd.conf || exit 1
 [ -n "$RSYNC_MIRROR" ] || exit 2
-cd $ISO_DIR || exit 3
+[ -n "$ISO_DIR" ] || exit 3
+
+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
+    chmod 664 "$file"
+    chmod 664 "${file}".md5
 done
-rsync --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
+
+rsync --times --partial -az --quiet $ISO_DIR/* $RSYNC_MIRROR
 
 ## END OF FILE #################################################################