From aa5820b6a194727e040054f015adaf38771a8663 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Fri, 12 Nov 2021 15:12:18 +0300 Subject: [PATCH] moved the doc script out of the make file... Signed-off-by: Alex A. Naanou --- Makefile | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 5469056..79fcdda 100644 --- a/Makefile +++ b/Makefile @@ -37,14 +37,7 @@ TEX := latexmk -lualatex $(ARGS) # to solve this odd instability... texToDoc = \ @echo "texToDoc: $1 -> $2"; \ - cat $1 \ - | egrep '(^%$3|^\\\\edef\\\\$*@[A-Z][A-Z]+)' \ - | sed 's/^\(\\\\edef\\\\\)$*@/%$3\\1/'\ - | sed 's/%$3%%%% \(.*\)/%$3\\\\subsubsection{\1}\\\\label{subsubsec:\1}/' \ - | sed 's/%$3%%% \(.*\)/%$3\\\\subsection{\1}\\\\label{subsec:\1}/' \ - | sed 's/%$3%% \(.*\)/%$3\\\\section{\1}\\\\label{sec:\1}/' \ - | sed 's/%$3\s\+>>\s\+\(.*\)/%$3\\\\begin{verbatim} \1 \\\\end{verbatim}/' \ - | cut -c 3- - > $2 + ./cls2tex.sh $1 $2 $3