Re: Putting draft release notes on www.debian.(org|net)?
On Sat, Nov 15, 2008 at 10:32:37AM -0800, Matt Kraai wrote:
> On Sat, Nov 15, 2008 at 07:01:05PM +0100, Simon Paillard wrote:
> > In $webtopdir/release-notes/lenny :
> > $ svn checkout svn://svn.debian.org/svn/ddp/manuals/branches/release-notes/lenny
> >
> > I fear the build will fail because of required backported packages ..
Did you build the lenny release-notes with success on www-master ?
> > For the crontab where $release = lenny :
> > (cd $notesdir/$release && svn up) >> $notesdir/build.log 2>&1
> > make -C $notesdir/$release publish \
> > PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/$release >> $notesdir/build.log 2>&1
> >
> > The loop defined in cron/parts/7release-notes doesn't fit since ddp
> > migrated to SVN since etch, and there is no etch branche in the SVN.
>
> Thanks for the instructions. I've checked out the lenny release notes
> and modified the 7release-notes script as follows:
>
> http://cvs.debian.org/cron/parts/7release-notes?r1=1.12&r2=1.13&diff_format=h
>
> Would you please review the change and let me know if there's anything
> else I should do?
There is a $release variable which is unset.
Here is a patch against the file, which by the way avoid "hardcoded"
release name.
--
Simon Paillard
#!/bin/bash -e
. `dirname $0`/../common.sh
notesdir=$webtopdir/release-notes
echo "Running the full release notes build... (at `date`)"
savelog -g debwww -m 664 $notesdir/build.log >/dev/null
date > $notesdir/build.log
# sarge isn't currently build by default since the current build
# system doesn't allow to rebuild only if necessary. If a rebuild
# is needed just add it here
for release in etch; do
echo "rebuilding the release notes for $release" >> $notesdir/build.log
(cd $notesdir/$release && cvs update -d -P) >> $notesdir/build.log 2>&1
make -C $notesdir/$release publish \
PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/$release >> $notesdir/build.log 2>&1
done
# release-notes migrated to SVN for lenny, do an other loop
for release in lenny; do
echo "rebuilding the release notes for $release" >> $notesdir/build.log
(cd $notesdir/$release && svn update) >> $notesdir/build.log 2>&1
make -C $notesdir/$release publish \
PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/$release >> $notesdir/build.log 2>&1
done
date >> $notesdir/build.log
echo "Full release notes build finished (at `date`)"
echo
--- 7release-notes.orig 2008-11-15 19:49:27.787052151 +0100
+++ 7release-notes.spa 2008-11-15 19:48:53.655251432 +0100
@@ -20,9 +20,13 @@
PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/$release >> $notesdir/build.log 2>&1
done
-(cd $notesdir/$release && svn update) >> $notesdir/build.log 2>&1
-make -C $notesdir/lenny publish \
- PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/lenny >> $notesdir/build.log 2>&1
+# release-notes migrated to SVN for lenny, do an other loop
+for release in lenny; do
+ echo "rebuilding the release notes for $release" >> $notesdir/build.log
+ (cd $notesdir/$release && svn update) >> $notesdir/build.log 2>&1
+ make -C $notesdir/$release publish \
+ PUBLISHTARBALL=yes PUBLISHDIR=$webtopdir/www/releases/$release >> $notesdir/build.log 2>&1
+done
date >> $notesdir/build.log
Reply to: