From 610b08292f816e81e7dea5446bbdd22effb434d7 Mon Sep 17 00:00:00 2001 From: Joerg Jaspert Date: Sat, 18 Sep 2010 10:51:35 +0200 Subject: [PATCH] Add changelog generation code in dinstall Signed-off-by: Joerg Jaspert --- config/debian/cron.dinstall | 8 ++++++++ config/debian/dinstall.functions | 8 ++++++++ config/debian/vars | 2 ++ 3 files changed, 18 insertions(+) diff --git a/config/debian/cron.dinstall b/config/debian/cron.dinstall index 0841f838..a9e9bd18 100755 --- a/config/debian/cron.dinstall +++ b/config/debian/cron.dinstall @@ -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" diff --git a/config/debian/dinstall.functions b/config/debian/dinstall.functions index 1b508d25..6e80479c 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 2a3200cf..0d5eb529 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 -- 2.39.2