summaryrefslogtreecommitdiff
path: root/cfg.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2010-05-10 11:06:37 +0200
committerJim Meyering <meyering@redhat.com>2010-05-10 11:45:40 +0200
commit88e2f6c860a05fd1471c66cc7bcc9d1fca1da3c7 (patch)
tree8a8b133844b51d771b74c9b88500849a9663f3f4 /cfg.mk
parente080c8a1b0ab3cd5675a5e40fe71f39eb29259bd (diff)
downloadcoreutils-88e2f6c860a05fd1471c66cc7bcc9d1fca1da3c7.tar.xz
tests: provide a definition of gl_trap_ in cfg.mk
* cfg.mk (gl_trap_): Define here, now that it's gone from maint.mk. * gnulib: Update to latest.
Diffstat (limited to 'cfg.mk')
-rw-r--r--cfg.mk7
1 files changed, 7 insertions, 0 deletions
diff --git a/cfg.mk b/cfg.mk
index 5a71a12d0..ae05f8c52 100644
--- a/cfg.mk
+++ b/cfg.mk
@@ -115,6 +115,13 @@ sc_x_sc_dist_check:
> $@-t
@mv $@-t $@
+define gl_trap_
+ Exit () { set +e; (exit $$1); exit $$1; }; \
+ for sig in 1 2 3 13 15; do \
+ eval "trap 'Exit $$(expr $$sig + 128)' $$sig"; \
+ done
+endef
+
# Files in src/ should not include directly any of
# the headers already included via system.h.
sc_system_h_headers: .re-list