buildd: Finalize sha1sum support.
authorMichael Prokop <mika@grml.org>
Fri, 18 Mar 2011 11:01:23 +0000 (12:01 +0100)
committerMichael Prokop <mika@grml.org>
Fri, 18 Mar 2011 11:01:23 +0000 (12:01 +0100)
buildd/cleanup.sh
buildd/link_latest.sh

index ef8b2b4..9ec7c31 100755 (executable)
@@ -37,7 +37,7 @@ done
 for file in $REMOVE_ME ; do
     test -f ${file}     && rm -f $file
     # ... but keep their md5sum / sha1sum:
-    test -f ${file}.md5  && mv ${file}.md5   .archive
+    test -f ${file}.md5  && mv ${file}.md5  .archive
     test -f ${file}.sha1 && mv ${file}.sha1 .archive
 done
 
index b968797..3e7345d 100755 (executable)
@@ -28,6 +28,8 @@ for flavour in grml-medium_squeeze   grml-medium_wheezy   grml-medium_sid   grml
      # http://bts.grml.org/grml/issue814
      name=$(awk '{print $2}' "${ISO}".md5)
      sed "s/$name/$latest/" "${ISO}".md5 > "${latest}".md5
+     name=$(awk '{print $2}' "${ISO}".sha1)
+     sed "s/$name/$latest/" "${ISO}".sha1 > "${latest}".sha1
      echo "$ISO" >> "$DAILY_DIR"/.timestamp_link
   fi
 done