From e0c6872cf40896c7be36b11dcc744620f10adf1d Mon Sep 17 00:00:00 2001 From: Norbert Preining Date: Mon, 2 Sep 2019 13:46:59 +0900 Subject: Initial commit --- web/yacco2/library/Makefile_Edit_cweb | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 web/yacco2/library/Makefile_Edit_cweb (limited to 'web/yacco2/library/Makefile_Edit_cweb') diff --git a/web/yacco2/library/Makefile_Edit_cweb b/web/yacco2/library/Makefile_Edit_cweb new file mode 100644 index 0000000000..9833b36505 --- /dev/null +++ b/web/yacco2/library/Makefile_Edit_cweb @@ -0,0 +1,30 @@ +# Makefile_Edit_cweb +# clean up the ctangle and cweave droppings +# add \input eplain before wlibrary.tex +# comment out #line of cweb emits +# delete ; +tmp=/tmp/o2 +if [ ! -e "$tmp" ] +then + mkdir $tmp +fi +#echo '\input eplain' > $tmp/eplain.txt +#cat $tmp/eplain.txt wlibrary.tex > $tmp/wlibrary.tex +#cp $tmp/wlibrary.tex wlibrary.tex +sed_cmd1="'-e s;^#line;//#line;'" +sed_cmd2="'-e s/^;$//'" +for i in wrc wset wthread wtok_can wtree yacco2 +do + j=$i.cpp + echo "correcting cweb file: $j" + eval "sed $sed_cmd1 $sed_cmd2 < $j > $tmp/$j" + cp $tmp/$j $j +done +for i in yacco2 war_begin_code war_end_code yacco2_typedefs yacco2_macros wproc_pp_core wpp_core +do + j=$i.h + echo "correcting cweb file: $j" + eval "sed $sed_cmd1 $sed_cmd2 < $j > $tmp/$j" + cp $tmp/$j $j +done +rm -fr $tmp \ No newline at end of file -- cgit v1.2.3