X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=modules%2Fsysexits;h=e9e568844931ae55fe62e1c7991db28e15309182;hb=73a7366830e5475e99f01e2723615b0283886e8f;hp=2872e36459f3896903bb7f0682b341246493fc49;hpb=0f55f1467a309da866fb443de970845827853569;p=gnulib.git diff --git a/modules/sysexits b/modules/sysexits index 2872e3645..e9e568844 100644 --- a/modules/sysexits +++ b/modules/sysexits @@ -12,12 +12,15 @@ gl_SYSEXITS Makefile.am: BUILT_SOURCES += $(SYSEXITS_H) -EXTRA_DIST += sysexit_.h # We need the following in order to create when the system # doesn't have one that works with the given compiler. sysexits.h: sysexit_.h - cp -f $(srcdir)/sysexit_.h $@-t + { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \ + 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