From: Joerg Jaspert Date: Sat, 18 Sep 2010 08:51:35 +0000 (+0200) Subject: Add changelog generation code in dinstall X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=610b08292f816e81e7dea5446bbdd22effb434d7;p=dak.git Add changelog generation code in dinstall Signed-off-by: Joerg Jaspert --- 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