From: Martin von Gagern Date: Wed, 14 Sep 2011 13:33:16 +0000 (+0200) Subject: maint.mk: avoid warnings from perl about missing files X-Git-Tag: v0.1~1866 X-Git-Url: http://erislabs.org.uk/gitweb/?a=commitdiff_plain;h=79754ee9ef6e7ad67c023bb211e29a8a0204878d;p=gnulib.git maint.mk: avoid warnings from perl about missing files * top/maint.mk (def_sym_regex): Ignore files listed in $(gl_other_headers_) that do not exist, say because a project does not use a corresponding module. --- diff --git a/ChangeLog b/ChangeLog index 72bd11edc..ff1985b20 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2011-09-14 Martin von Gagern + + maint.mk: avoid warnings from perl about missing files + * top/maint.mk (def_sym_regex): Ignore files listed in + $(gl_other_headers_) that do not exist, say because a project + does not use a corresponding module. + 2011-09-18 Paul Eggert stat: use pathmax.h only if needed diff --git a/top/maint.mk b/top/maint.mk index bbb67ec5d..0137df10f 100644 --- a/top/maint.mk +++ b/top/maint.mk @@ -762,7 +762,8 @@ define def_sym_regex gen_h=$(gl_generated_headers_); \ (cd $(gnulib_dir)/lib; \ for f in *.in.h $(gl_other_headers_); do \ - perl -lne '$(gl_extract_significant_defines_)' $$f; \ + test -f $$f \ + && perl -lne '$(gl_extract_significant_defines_)' $$f; \ done; \ ) | sort -u \ | sed 's/^/^ *# *(define|undef) */;s/$$/\\>/'