summaryrefslogtreecommitdiff
path: root/modules/sysexits
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-26 10:16:08 +0000
committerBruno Haible <bruno@clisp.org>2007-03-26 10:16:08 +0000
commitaf7308e5e6af8afd55c64386f23977070f8aa657 (patch)
treeaa4d26fbe2bfc79c3495cad1ba0965961a1bf145 /modules/sysexits
parent578b78a0f92cb6732d1b76d76933b376be85de55 (diff)
downloadgnulib-af7308e5e6af8afd55c64386f23977070f8aa657.tar.gz
If <sysexits.h> exists but is missing values, fill in the missing values.
Diffstat (limited to 'modules/sysexits')
-rw-r--r--modules/sysexits4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/sysexits b/modules/sysexits
index c979b9ede8..e9e5688449 100644
--- a/modules/sysexits
+++ b/modules/sysexits
@@ -17,7 +17,9 @@ BUILT_SOURCES += $(SYSEXITS_H)
# doesn't have one that works with the given compiler.
sysexits.h: sysexit_.h
{ echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
- cat $(srcdir)/sysexit_.h; \
+ sed -e 's|@''HAVE_SYSEXITS_H''@|$(HAVE_SYSEXITS_H)|g' \
+ -e 's|@''ABSOLUTE_SYSEXITS_H''@|$(ABSOLUTE_SYSEXITS_H)|g' \
+ < $(srcdir)/sysexit_.h; \
} > $@-t
mv -f $@-t $@
MOSTLYCLEANFILES += sysexits.h sysexits.h-t