]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Fix handling of POTFILES.in.
authorBruno Haible <bruno@clisp.org>
Fri, 18 Jan 2002 21:05:15 +0000 (21:05 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 23:03:07 +0000 (01:03 +0200)
m4/ChangeLog
m4/gettext.m4

index 9dfdf9d755d40799685d4534a6f44741e6f5b608..f58480e6cf5c7d8fe5a59a34e2fd44686c53b45d 100644 (file)
@@ -1,3 +1,10 @@
+2002-01-18  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.m4 (AM_PO_SUBDIRS): Split preprocessing of POTFILES.in into
+       two separate sed calls, otherwise the backslash that terminates the
+       last line doesn't get removed if the last line of POTFILES.in is a
+       comment line or a blank line.
+
 2002-01-18  Bruno Haible  <bruno@clisp.org>
 
        * gettext.m4 (AM_PO_SUBDIRS): Improve "found msgfmt program" message.
index df06951aec306f922f5f7c49c41c5170167e8cfa..76e4afba69f61823e486f1cc41ee3807957c3396 100644 (file)
@@ -341,7 +341,7 @@ AC_DEFUN([AM_PO_SUBDIRS],
         if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then
           rm -f "$ac_dir/POTFILES"
           test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES"
-          sed -e "/^#/d" -e "/^[       ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," -e "\$s/\(.*\) \\\\/\1/" < "$ac_given_srcdir/$ac_dir/POTFILES.in" > "$ac_dir/POTFILES"
+          cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[  ]*\$/d" -e "s,.*,     $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES"
           # ALL_LINGUAS, POFILES, GMOFILES, UPDATEPOFILES, DUMMYPOFILES depend
           # on $ac_dir but don't depend on user-specified configuration
           # parameters.