]> git.decadent.org.uk Git - dak.git/commitdiff
dinstall
authorJoerg Jaspert <joerg@debian.org>
Sun, 1 Nov 2009 21:31:09 +0000 (22:31 +0100)
committerJoerg Jaspert <joerg@debian.org>
Sun, 1 Nov 2009 21:31:09 +0000 (22:31 +0100)
and moved mkchecksums into dinstall

Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.dinstall
scripts/debian/mkchecksums [deleted file]

index 195b47fb153fbba856b01defe98ab8d91945788d..14471cc1e3a129f22be17280bebfe706aea3aa18 100755 (executable)
@@ -445,6 +445,19 @@ function mkfilesindices() {
     rm -f $ARCHLIST
     echo "Done!"
 }
     rm -f $ARCHLIST
     echo "Done!"
 }
+
+function mkchecksums() {
+    dsynclist=$dbdir/dsync.list
+    md5list=$indices/md5sums
+
+    log -n "Creating md5 / dsync index file ... "
+
+    cd "$ftpdir"
+    ${bindir}/dsync-flist -q generate $dsynclist --exclude $dsynclist --md5
+    ${bindir}/dsync-flist -q md5sums $dsynclist | gzip -9n --rsyncable > ${md5list}.gz
+    ${bindir}/dsync-flist -q link-dups $dsynclist || true
+}
+
 function scripts() {
     log "Running various scripts from $scriptsdir"
     cd $scriptsdir
 function scripts() {
     log "Running various scripts from $scriptsdir"
     cd $scriptsdir
@@ -452,7 +465,7 @@ function scripts() {
     copyoverrides
     mklslar
     mkfilesindices
     copyoverrides
     mklslar
     mkfilesindices
-    ./mkchecksums
+    mkchecksums
 }
 
 function mirror() {
 }
 
 function mirror() {
diff --git a/scripts/debian/mkchecksums b/scripts/debian/mkchecksums
deleted file mode 100755 (executable)
index f733e89..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/sh
-# Update the md5sums file
-
-set -e
-. $SCRIPTVARS
-
-dsynclist=$dbdir/dsync.list
-md5list=$indices/md5sums
-
-echo -n "Creating md5 / dsync index file ... "
-
-cd "$ftpdir"
-${bindir}/dsync-flist -q generate $dsynclist --exclude $dsynclist --md5
-${bindir}/dsync-flist -q md5sums $dsynclist | gzip -9n > ${md5list}.gz
-${bindir}/dsync-flist -q link-dups $dsynclist || true