diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2003-08-30 19:06:06 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2003-08-30 19:06:06 +0000 |
commit | c9c5f9da9366d1587c588507433cec35ef243579 (patch) | |
tree | 99d69de0866c36adf40dc516c8ab3ab64ad480ce /Src/Modules/system.mdd | |
parent | c016b2dcdc7faade5b279c279b2d506b9ea22bf7 (diff) | |
download | zsh-c9c5f9da9366d1587c588507433cec35ef243579.tar.gz zsh-c9c5f9da9366d1587c588507433cec35ef243579.tar.xz zsh-c9c5f9da9366d1587c588507433cec35ef243579.zip |
18980: new zsh/system module
Diffstat (limited to 'Src/Modules/system.mdd')
-rw-r--r-- | Src/Modules/system.mdd | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/Src/Modules/system.mdd b/Src/Modules/system.mdd new file mode 100644 index 000000000..61950994a --- /dev/null +++ b/Src/Modules/system.mdd @@ -0,0 +1,27 @@ +name=zsh/system +link=dynamic +load=no + +autobins="sysread syswrite syserror" + +autoparams="errnos" + +objects="system.o errnames.o" + +headers="errcount.h" + +:<<\Make +errnames.c: errnames1.awk errnames2.awk $(dir_top)/config.h @ERRNO_H@ + if [ x@ERRNO_H@ = x ]; then \ + touch errtmp.out; \ + else \ + $(AWK) -f $(sdir)/errnames1.awk @ERRNO_H@ >errtmp.c; \ + $(CPP) errtmp.c >errtmp.out; \ + fi + $(AWK) -f $(sdir)/errnames2.awk errtmp.out > $@ + rm -f errtmp.c errtmp.out + +errcount.h: errnames.c + grep 'define.*ERRCOUNT' errnames.c > $@ +Make + |