* top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
expression that converts "." in a file name to "\." in the resulting
regexp. Start with a dummy statement, so that prior shell variable
definitions are expanded portably. Reported by Simon Josefsson.
+2009-08-20 Jim Meyering <meyering@redhat.com>
+
+ maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
+ * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
+ expression that converts "." in a file name to "\." in the resulting
+ regexp. Start with a dummy statement, so that prior shell variable
+ definitions are expanded portably. Reported by Simon Josefsson.
+
2009-08-20 Paolo Bonzini <bonzini@gnu.org>
Fix polling for writeability of a screen buffer.
# h: the header, enclosed in <> or ""
# re: a regular expression that matches IFF something provided by $h is used.
define _header_without_use
- h_esc=`echo "$$h"|sed 's/\./\\./g'`; \
+ dummy=; : so we do not need a semicolon before each use; \
+ h_esc=`echo "$$h"|sed 's/\./\\\\./g'`; \
if $(VC_LIST_EXCEPT) | grep -l '\.c$$' > /dev/null; then \
files=$$(grep -l '^# *include '"$$h_esc" \
$$($(VC_LIST_EXCEPT) | grep '\.c$$')) && \