]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix interpretation of comments in the LINGUAS file.
authorBruno Haible <bruno@clisp.org>
Mon, 14 Mar 2005 11:15:19 +0000 (11:15 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:12:25 +0000 (12:12 +0200)
gettext-runtime/m4/ChangeLog
gettext-runtime/m4/po.m4

index eb6a58531172d2c3897e75b4a6d7c47b4d7ed800..0069887872235cfe63f73b720929a5944ce50a3d 100644 (file)
@@ -2,6 +2,11 @@
 
        * gettext-0.14.3 released.
 
+2005-03-12  Bruno Haible  <bruno@clisp.org>
+
+       * po.m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): In the LINGUAS
+       file, ignore also comments that don't start in column 0.
+
 2005-03-12  Bruno Haible  <bruno@clisp.org>
 
        * gettext.m4 (AM_GNU_GETTEXT): Fix quoting bug. Fixes an endless loop
index 8bdef64a43fbed478d38cc8da4df54d4bdac86b3..f2795eea0ca42665ceedb08f4dd90f79c25bfe1f 100644 (file)
@@ -1,4 +1,4 @@
-# po.m4 serial 6 (gettext-0.14.3)
+# po.m4 serial 7 (gettext-0.14.3)
 dnl Copyright (C) 1995-2005 Free Software Foundation, Inc.
 dnl This file is free software; the Free Software Foundation
 dnl gives unlimited permission to copy and/or distribute it,
@@ -122,7 +122,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
             if test -n "$OBSOLETE_ALL_LINGUAS"; then
               test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete"
             fi
-            ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
+            ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
             # Hide the ALL_LINGUAS assigment from automake.
             eval 'ALL_LINGUAS''=$ALL_LINGUAS_'
             POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
@@ -301,7 +301,7 @@ changequote([,])dnl
   fi
   if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then
     # The LINGUAS file contains the set of available languages.
-    ALL_LINGUAS_=`sed -e "/^#/d" "$ac_given_srcdir/$ac_dir/LINGUAS"`
+    ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"`
     POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS"
   else
     # Set ALL_LINGUAS to the value of the Makefile variable LINGUAS.