mkfile (view raw)
1<$PLAN9/src/mkhdr
2
3TARG=acme
4DIRS=mail
5
6OFILES=\
7 acme.$O\
8 addr.$O\
9 buff.$O\
10 cols.$O\
11 disk.$O\
12 ecmd.$O\
13 edit.$O\
14 elog.$O\
15 exec.$O\
16 file.$O\
17 fsys.$O\
18 logf.$O\
19 look.$O\
20 regx.$O\
21 rows.$O\
22 scrl.$O\
23 text.$O\
24 time.$O\
25 util.$O\
26 wind.$O\
27 xfid.$O\
28
29HFILES=dat.h\
30 edit.h\
31 fns.h\
32
33<$PLAN9/src/mkone
34<$PLAN9/src/mkdirs
35
36edit.$O ecmd.$O elog.$O: edit.h
37
38likeplan9:V:
39 mkdir -p likeplan9
40 rm -f likeplan9/*
41 for i in *.c
42 do
43 9 sed 's/->(fcall|lk|b|fr|ref|m|u|u1)\./->/g;
44 s/\.(fcall|lk|b|fr|ref|m|u|u1)([^a-zA-Z0-9_])/\2/g
45 s/&(([a-zA-Z0-9_]|->|\.)*)->(fcall|lk|b|fr|ref|m|u|u1)([^a-zA-Z0-9_])/\1\4/g
46 s/range\(([^,()]+), ([^,()]+)\)/(Range){\1, \2}/g
47 ' $i >likeplan9/$i
48 done
49
50diffplan9:V:
51 mk likeplan9
52 9 diff -n plan9 likeplan9 | sed 's;likeplan9/;;'