mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-04-29 19:30:36 +02:00
Fix the rule to check for new signals and errors
Fixes <http://bugs.gnu.org/21114>. * libguile/Makefile.am (chknew-E chknew-SIG): Remove the line continuation after the targets, and include numbers in the recipe's signal/error regexp to catch names like E2BIG. Signed-off-by: Ludovic Courtès <ludo@gnu.org>
This commit is contained in:
parent
2e3f6c3c67
commit
99555262a9
2 changed files with 3 additions and 2 deletions
1
libguile/.gitignore
vendored
1
libguile/.gitignore
vendored
|
@ -13,3 +13,4 @@ libpath.h
|
|||
scmconfig.h
|
||||
version.h
|
||||
vm-i-*.i
|
||||
*.NEW
|
||||
|
|
|
@ -815,13 +815,13 @@ MKDEP = gcc -M -MG $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
|
|||
|
||||
# Write $(srcdir)/cpp-{E,SIG}.syms.NEW if there are any not-yet-seen
|
||||
# ("new" to us) E* or SIG* symbols in <errno.h> or <signal.h>, respectively.
|
||||
chknew-E chknew-SIG: \
|
||||
chknew-E chknew-SIG:
|
||||
@bit=`echo $@ | sed s/^chknew-//` ; \
|
||||
old="$(srcdir)/cpp-$$bit.syms" ; \
|
||||
echo "#include <$${bit}.h>" \
|
||||
| sed 's/E/errno/;s/SIG/signal/' \
|
||||
| gcc -dM -E - \
|
||||
| sed 's/^#define //;/^'$$bit'[A-Z][A-Z]*/!d;s/ .*//' \
|
||||
| sed 's/^#define //;/^'$$bit'[0-9A-Z][0-9A-Z]*/!d;s/ .*//' \
|
||||
| sort | diff -u $$old - | sed '1,2d;/^+/!d;s/^.//' \
|
||||
> TMP ; \
|
||||
if [ -s TMP ] ; then new="$$old.NEW" ; \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue