From: Bruno Haible Date: Tue, 4 Dec 2001 19:22:16 +0000 (+0000) Subject: Avoid an annoying error message. X-Git-Tag: v0.11~231 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a16654cc6e441f96114242d2b1fb68b1aedafb57;p=thirdparty%2Fgettext.git Avoid an annoying error message. --- diff --git a/m4/ChangeLog b/m4/ChangeLog index 5770237a0..5cac07531 100644 --- a/m4/ChangeLog +++ b/m4/ChangeLog @@ -1,3 +1,8 @@ +2001-12-02 Bruno Haible + + * gettext.m4 (AM_GNU_GETTEXT): Avoid an error message if there is + no Rules-* file. + 2001-12-04 Bruno Haible * javacomp.m4 (gt_JAVACOMP): Exclude at.dms.kjc.Main (KOPI) versions diff --git a/m4/gettext.m4 b/m4/gettext.m4 index fd3a42eec..604edeb18 100644 --- a/m4/gettext.m4 +++ b/m4/gettext.m4 @@ -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 ;;