Re: make scripts/l10n/log-changes usable on non-po-debconf packages
And as usual, things work much better when I remember to attach things...
On Sun, Sep 09, 2007 at 03:55:12PM +0200, Robert Millan wrote:
> Without the help of scripts/l10n/output-l10n-changes it was becoming a PITA to
> maintain changelog entries for translations in win32-loader, so I gave it a try
> and discovered scripts/l10n/log-changes had some bits specific to po-debconf
> This patch makes scripts/l10n/log-changes usable on non-po-debconf packages.
> I don't think it breaks anything, but then again can't be sure of it since I
> know very little about D-I l10n infrastructure.
> Is it ok for commit?
> Robert Millan
> <GPLv2> I know my rights; I want my phone call!
> <DRM> What use is a phone call, if you are unable to speak?
> (as seen on /.)
<GPLv2> I know my rights; I want my phone call!
<DRM> What use is a phone call, if you are unable to speak?
(as seen on /.)
--- scripts/l10n/log-changes (revision 49198)
+++ scripts/l10n/log-changes (working copy)
@@ -27,7 +27,9 @@
+POS="`for i in $PACKAGE/debian/po $PACKAGE/*/po $PACKAGE/po ; do \
+ if test -d $i ; then echo $i ; break ; fi ; \
if [ ! -e $CHANGELOG ]
@@ -36,6 +38,12 @@
+if [ ! -d "$POS" ]
+ echo "Cannot find the PO directory!"
# Line number of the changelog's old date
LINE=`grep -a "; urgency=" "$CHANGELOG" | egrep -n "$RELEASE" | head -n 1 | sed 's/:.*//g'`