]> git.decadent.org.uk Git - dak.git/blob - scripts/debian/mkchecksums
dsync
[dak.git] / scripts / debian / mkchecksums
1 #!/bin/sh
2 # Update the md5sums file
3
4 set -e
5 . $SCRIPTVARS
6
7 dsynclist=$dbdir/dsync.list
8 md5list=$indices/md5sums
9
10 echo -n "Creating md5 / dsync index file ... "
11
12 cd "$ftpdir"
13 ${bindir}/dsync-flist -q generate $dsynclist --exclude $dsynclist --md5
14 ${bindir}/dsync-flist -q md5sums $dsynclist | gzip -9n > ${md5list}.gz
15 ${bindir}/dsync-flist -q link-dups $dsynclist || true