]> git.decadent.org.uk Git - dak.git/blobdiff - scripts/debian/mkchecksums
Stop using silly names, and migrate to a saner directory structure.
[dak.git] / scripts / debian / mkchecksums
diff --git a/scripts/debian/mkchecksums b/scripts/debian/mkchecksums
new file mode 100755 (executable)
index 0000000..b99fd86
--- /dev/null
@@ -0,0 +1,16 @@
+#!/bin/sh
+# Update the md5sums file
+# $Id: mkchecksums,v 1.2 2000-12-20 08:15:35 troup Exp $
+
+set -e
+. $SCRIPTVARS
+
+dsynclist=$dbdir/dsync.list
+md5list=$indices/md5sums
+
+echo -n "Creating md5 / dsync index file ... "
+
+cd "$ftpdir"
+dsync-flist -q generate $dsynclist --exclude $dsynclist --md5
+dsync-flist -q md5sums $dsynclist | gzip -9n > ${md5list}.gz
+dsync-flist -q link-dups $dsynclist || true