]> Savannah Git Hosting - gnulib.git/commitdiff
maint.mk: sc_tight_scope: remove extraneous expressions
authorPádraig Brady <P@draigBrady.com>
Sun, 18 Oct 2015 20:15:35 +0000 (21:15 +0100)
committerPádraig Brady <P@draigBrady.com>
Sun, 18 Oct 2015 22:25:29 +0000 (23:25 +0100)
* top/maint.mk (tight_scope): This is not really required since
commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
that matches all nm entries.  But it does remove extraneous entries
that may be confusing or cause issue in future maintenance.

ChangeLog
top/maint.mk

index 3a9768e84356481dd19868850bc72c7ef4210216..ae7ec704b2e6d2b10cdf2260e457a9250149f194 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2015-10-18  Pádraig Brady  <P@draigBrady.com>
+
+       maint.mk: sc_tight_scope: remove extraneous expressions
+       * top/maint.mk (tight_scope): This is not really required since
+       commit 3ef58f46 as sed_wrap ensures we don't get an empty expression
+       that matches all nm entries.  But it does remove extraneous entries
+       that may be confusing or cause issue in future maintenance.
+
 2015-10-18  Paul Eggert  <eggert@cs.ucla.edu>
 
        time_rz: return NULL if localtime_r fails
index 4887e5daeeda11eff2455e252209989be88719fd..893874b45d81785eb7a223cbeca7227a63cd6b7b 100644 (file)
@@ -1645,7 +1645,7 @@ _gl_tight_scope: $(bin_PROGRAMS)
               test -f $$f && d= || d=$(srcdir)/; echo $$d$$f; done`;   \
        ( printf '%s\n' '__.*' $(_gl_TS_unmarked_extern_functions);     \
          grep -h -A1 '^extern .*[^;]$$' $$src                          \
-           | grep -vE '^(extern |--)' | $(SED) 's/ .*//';              \
+           | grep -vE '^(extern |--|#)' | $(SED) 's/ .*//; /^$$/d';    \
          perl -lne                                                     \
             '$(_gl_TS_function_match) and print $$1' $$hdr;            \
        ) | sort -u | $(SED) "$$sed_wrap" > $$t;                        \