acme9k/mkfile

65 lines
1 KiB
Text
Raw Permalink Normal View History

2019-11-14 23:15:48 +00:00
<$PLAN9/src/mkhdr
TARG=acme
DIRS=mail libframe
2019-11-14 23:15:48 +00:00
OFILES=\
libframe/frbox.$O\
libframe/frdelete.$O\
libframe/frdraw.$O\
libframe/frinit.$O\
libframe/frinsert.$O\
libframe/frptofchar.$O\
libframe/frselect.$O\
libframe/frstr.$O\
libframe/frutil.$O\
2019-11-14 23:15:48 +00:00
acme.$O\
addr.$O\
buff.$O\
cols.$O\
disk.$O\
ecmd.$O\
edit.$O\
elog.$O\
exec.$O\
file.$O\
fsys.$O\
logf.$O\
look.$O\
regx.$O\
rows.$O\
scrl.$O\
text.$O\
time.$O\
util.$O\
wind.$O\
xfid.$O\
HFILES=libframe/frame.h\
dat.h\
2019-11-14 23:15:48 +00:00
edit.h\
fns.h\
<$PLAN9/src/mkone
<$PLAN9/src/mkdirs
edit.$O ecmd.$O elog.$O: edit.h
# LDFLAGS=-L./libframe -lframe $LDFLAGS
2019-11-14 23:15:48 +00:00
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/;;'