X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=scripts%2Fdebian%2Fmkchecksums;fp=scripts%2Fdebian%2Fmkchecksums;h=b99fd866f1f358684666ca29af8e5407feb2bdfa;hb=59fd5aa2a8be3b76dbc968429c457f096adfa472;hp=0000000000000000000000000000000000000000;hpb=9540d873fa78598454af57f5f8a4875969ed0439;p=dak.git diff --git a/scripts/debian/mkchecksums b/scripts/debian/mkchecksums new file mode 100755 index 00000000..b99fd866 --- /dev/null +++ b/scripts/debian/mkchecksums @@ -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