diff options
author | Russ Cox <rsc@swtch.com> | 2008-07-20 06:17:17 -0400 |
---|---|---|
committer | Russ Cox <rsc@swtch.com> | 2008-07-20 06:17:17 -0400 |
commit | f5fcdeeedfd70da11a3990d3d91fe165f0bf8ef7 (patch) | |
tree | 6f1fc63a9a1b02533e553151c56eed9063433e15 /unix/mkfile.fmt | |
parent | 9f0d3523fc61e53d6348d628df6fd16a7543cec4 (diff) | |
download | plan9port-f5fcdeeedfd70da11a3990d3d91fe165f0bf8ef7.tar.gz plan9port-f5fcdeeedfd70da11a3990d3d91fe165f0bf8ef7.tar.bz2 plan9port-f5fcdeeedfd70da11a3990d3d91fe165f0bf8ef7.zip |
unix: move man pages in unix ports
Diffstat (limited to 'unix/mkfile.fmt')
-rw-r--r-- | unix/mkfile.fmt | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/unix/mkfile.fmt b/unix/mkfile.fmt index c85852cc..d88525e8 100644 --- a/unix/mkfile.fmt +++ b/unix/mkfile.fmt @@ -1,10 +1,12 @@ MAKEALL=`{cd ../make; ls Make.*} +CFILES=`{9 ls -p $PLAN9/src/lib9/fmt/*.c} +CFILES1=`{9 ls -p $PLAN9/src/lib9/fmt/*.c |grep -v test} TARG=\ $MAKEALL\ + $CFILES\ NOTICE\ README\ Makefile\ - `{9 ls -p $PLAN9/src/lib9/fmt/*.c}\ fmt.h\ fmtdef.h\ nan.h\ @@ -19,3 +21,17 @@ WHAT=fmt %: $PLAN9/src/lib9/fmt/% cp $prereq $target +fmt1.c: plan9.h $CFILES1 + (echo '#include <stdarg.h>'; \ + echo '#include <string.h>'; \ + echo '#include <stdlib.h>'; \ + echo '#include <errno.h>'; \ + echo '#include <limits.h>'; \ + echo '#include <math.h>'; \ + echo '#include <float.h>'; \ + cat plan9.h; \ + echo '#include "utf.h"'; \ + echo '#include "fmt.h"'; \ + cat fmtdef.h; \ + grep -hv '^#include' $CFILES1) >$target + |