]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Avoid an annoying error message.
authorBruno Haible <bruno@clisp.org>
Tue, 4 Dec 2001 19:22:16 +0000 (19:22 +0000)
committerBruno Haible <bruno@clisp.org>
Sun, 21 Jun 2009 21:33:46 +0000 (23:33 +0200)
m4/ChangeLog
m4/gettext.m4

index 5770237a02acbe684127bcd88fc7788e74ab1a38..5cac07531dda2e47cb921b564354a00eab639e60 100644 (file)
@@ -1,3 +1,8 @@
+2001-12-02  Bruno Haible  <bruno@clisp.org>
+
+       * gettext.m4 (AM_GNU_GETTEXT): Avoid an error message if there is
+       no Rules-* file.
+
 2001-12-04  Bruno Haible  <bruno@clisp.org>
 
        * javacomp.m4 (gt_JAVACOMP): Exclude at.dms.kjc.Main (KOPI) versions
index fd3a42eecef2276f0bd016c4e167a20d82da1490..604edeb18e8c8e8ef56a3ef6594bbd21565fb6c8 100644 (file)
@@ -374,7 +374,9 @@ AC_DEFUN([AM_PO_SUBDIRS],
           test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile"
           sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile"
           for f in "$ac_dir"/Rules-*; do
-            cat "$f" >> "$ac_dir/Makefile"
+            if test -f "$f"; then
+              cat "$f" >> "$ac_dir/Makefile"
+            fi
           done
         fi
         ;;