[Debian-l10n-commits] r1047 - in /dl10n/trunk/lib/Locale: Country.pm Language.pm

nekral-guest at users.alioth.debian.org nekral-guest at users.alioth.debian.org
Sun Jun 1 11:51:04 UTC 2008


Author: nekral-guest
Date: Sun Jun  1 11:51:03 2008
New Revision: 1047

URL: http://svn.debian.org/wsvn/?sc=1&rev=1047
Log:
The Revision keyword expansion differs from one VCS to the other. This
version extraction mechanism should be more generic.

Modified:
    dl10n/trunk/lib/Locale/Country.pm
    dl10n/trunk/lib/Locale/Language.pm

Modified: dl10n/trunk/lib/Locale/Country.pm
URL: http://svn.debian.org/wsvn/dl10n/trunk/lib/Locale/Country.pm?rev=1047&op=diff
==============================================================================
--- dl10n/trunk/lib/Locale/Country.pm (original)
+++ dl10n/trunk/lib/Locale/Country.pm Sun Jun  1 11:51:03 2008
@@ -82,7 +82,7 @@
 #	Public Global Variables
 #-----------------------------------------------------------------------
 use vars qw($VERSION @ISA @EXPORT @EXPORT_OK);
-$VERSION   = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/);
+$VERSION   = sprintf("%s", q$Revision$ =~ /Revision:\s*(.*)/);
 @ISA       = qw(Exporter);
 @EXPORT    = qw(code2country country2code
                 all_country_codes all_country_names

Modified: dl10n/trunk/lib/Locale/Language.pm
URL: http://svn.debian.org/wsvn/dl10n/trunk/lib/Locale/Language.pm?rev=1047&op=diff
==============================================================================
--- dl10n/trunk/lib/Locale/Language.pm (original)
+++ dl10n/trunk/lib/Locale/Language.pm Sun Jun  1 11:51:03 2008
@@ -42,7 +42,7 @@
 #	Public Global Variables
 #-----------------------------------------------------------------------
 use vars qw($VERSION @ISA @EXPORT);
-$VERSION      = sprintf("%d.%02d", q$Revision$ =~ /(\d+)\.(\d+)/);
+$VERSION      = sprintf("%s", q$Revision$ =~ /Revision:\s*(.*)/);
 @ISA          = qw(Exporter);
 @EXPORT       = qw(&code2language &language2code
                    &all_language_codes &all_language_names );




More information about the Debian-l10n-commits mailing list