]> err.no Git - dak/commitdiff
Add changelog generation code in dinstall
authorJoerg Jaspert <joerg@debian.org>
Sat, 18 Sep 2010 08:51:35 +0000 (10:51 +0200)
committerJoerg Jaspert <joerg@debian.org>
Sat, 18 Sep 2010 08:51:35 +0000 (10:51 +0200)
Signed-off-by: Joerg Jaspert <joerg@debian.org>
config/debian/cron.dinstall
config/debian/dinstall.functions
config/debian/vars

index 0841f8380aab8c51136c709805d952556c30bb23..a9e9bd180be29c0a54af9c8b3ad7c291cf387dea 100755 (executable)
@@ -388,6 +388,14 @@ rm -f "${LOCK_DAILY}"
 ts "locked part finished"
 state "postlock"
 
+GO=(
+    FUNC="changelogs"
+    TIME="changelogs"
+    ARGS=""
+    ERR="false"
+)
+stage $GO &
+
 GO=(
     FUNC="pgdump_post"
     TIME="pg_dump2"
index 1b508d25a657ad88ed266f46e1df09d3fda73f6a..6e80479cdf5fe5821738b5102dbf362cba71585c 100644 (file)
@@ -604,3 +604,11 @@ Current action: ${1}
 Action start: ${RIGHTNOW}
 EOF
 }
+
+# extract changelogs and stuff
+function changelogs() {
+    log "Extracting changelogs"
+    dak make-changelog -e
+    cd ${exportpublic}/changelogs
+    rsync -aHW --delete --delete-after --ignore-errors ${exportdir}/changelogs/. .
+}
index 2a3200cfc2e0c4e7541e38edbe4910522e289019..0d5eb5299acc040dc3ead0066659eec17086b4c2 100644 (file)
@@ -25,6 +25,8 @@ accepted=$queuedir/accepted/
 mirrordir=$base/mirror/
 incoming=$base/incoming
 newstage=$queuedir/newstage/
+exportdir=$base/export/
+exportpublic=$public/rsync/export/
 
 ftpgroup=debadmin