diff options
Diffstat (limited to 'src/cmd/acme/mkfile')
-rw-r--r-- | src/cmd/acme/mkfile | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cmd/acme/mkfile b/src/cmd/acme/mkfile index 47ff8d6e..a8696a15 100644 --- a/src/cmd/acme/mkfile +++ b/src/cmd/acme/mkfile @@ -33,3 +33,19 @@ HFILES=dat.h\ <$PLAN9/src/mkdirs edit.$O ecmd.$O elog.$O: edit.h + +likeplan9:V: + mkdir -p likeplan9 + rm -f likeplan9/* + for i in *.c + do + 9 sed 's/->(fcall|lk|b|fr|ref|m|u|u1)\./->/g; + s/\.(fcall|lk|b|fr|ref|m|u|u1)([^a-zA-Z0-9_])/\2/g + s/&(([a-zA-Z0-9_]|->|\.)*)->(fcall|lk|b|fr|ref|m|u|u1)([^a-zA-Z0-9_])/\1\4/g + s/range\(([^,()]+), ([^,()]+)\)/(Range){\1, \2}/g + ' $i >likeplan9/$i + done + +diffplan9:V: + mk likeplan9 + 9 diff -n plan9 likeplan9 | sed 's;likeplan9/;;' |