summaryrefslogtreecommitdiff
path: root/Makefile.maint
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2005-04-09 07:24:49 +0000
committerJim Meyering <jim@meyering.net>2005-04-09 07:24:49 +0000
commit29cb226323c3d4770b34fcb27c7fb844c5440741 (patch)
treededa887d7fa28e138a8b0089b3a93b24727ac167 /Makefile.maint
parent6cd4eed0baf13a808737b4b948f777fcf95d02d9 (diff)
downloadcoreutils-29cb226323c3d4770b34fcb27c7fb844c5440741.tar.xz
(sc_system_h_headers): Propagate exit status through trap.
Diffstat (limited to 'Makefile.maint')
-rw-r--r--Makefile.maint2
1 files changed, 1 insertions, 1 deletions
diff --git a/Makefile.maint b/Makefile.maint
index af2fe642d..054757035 100644
--- a/Makefile.maint
+++ b/Makefile.maint
@@ -206,7 +206,7 @@ sc_root_tests:
sc_system_h_headers: .re-list
@if test -f $(srcdir)/src/system.h; then \
( $(CVS_LIST) ) > /dev/null 2>&1 || exit 0; \
- trap 'rm -f .re-list' 0 1 2 3 15; \
+ trap 'rc=$$?; rm -f .re-list; exit $$rc' 0 1 2 3 15; \
grep -E -f .re-list \
$$($(CVS_LIST) src | grep -Ev '(copy|system)\.h$$') \
&& { echo '$(ME): the above are already included via system.h'\