[dak/master] Add changelog generation code in dinstall
Signed-off-by: Joerg Jaspert <joerg@debian.org>
---
config/debian/cron.dinstall | 8 ++++++++
config/debian/dinstall.functions | 8 ++++++++
config/debian/vars | 2 ++
3 files changed, 18 insertions(+), 0 deletions(-)
diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall
index 0841f83..a9e9bd1 100755
--- a/config/debian/cron.dinstall
+++ b/config/debian/cron.dinstall
@@ -389,6 +389,14 @@ ts "locked part finished"
state "postlock"
GO=(
+ FUNC="changelogs"
+ TIME="changelogs"
+ ARGS=""
+ ERR="false"
+)
+stage $GO &
+
+GO=(
FUNC="pgdump_post"
TIME="pg_dump2"
ARGS=""
diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions
index 1b508d2..6e80479 100644
--- a/config/debian/dinstall.functions
+++ b/config/debian/dinstall.functions
@@ -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/. .
+}
diff --git a/config/debian/vars b/config/debian/vars
index 2a3200c..0d5eb52 100644
--- a/config/debian/vars
+++ b/config/debian/vars
@@ -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
--
1.5.6.5
Reply to: