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:
>
> Hi,
>
> 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
> packages.
>
> 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 /.)
--
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 /.)
Index: scripts/l10n/log-changes
===================================================================
--- scripts/l10n/log-changes (revision 49198)
+++ scripts/l10n/log-changes (working copy)
@@ -27,7 +27,9 @@
CHANGELOG="$PACKAGE/debian/changelog"
-POS="$PACKAGE/debian/po"
+POS="`for i in $PACKAGE/debian/po $PACKAGE/*/po $PACKAGE/po ; do \
+ if test -d $i ; then echo $i ; break ; fi ; \
+ done`"
RELEASE="unstable|experimental"
if [ ! -e $CHANGELOG ]
@@ -36,6 +38,12 @@
exit
fi
+if [ ! -d "$POS" ]
+then
+ echo "Cannot find the PO directory!"
+ exit
+fi
+
# Line number of the changelog's old date
LINE=`grep -a "; urgency=" "$CHANGELOG" | egrep -n "$RELEASE" | head -n 1 | sed 's/:.*//g'`
Reply to: