From 56b817b36525b14c13b49190dfc876b8e6079dfa Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 25 Nov 2021 15:25:41 +0300 Subject: [PATCH] ... Signed-off-by: Alex A. Naanou --- Makefile | 1 - scripts/cls2tex.sh | 10 +++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index ed4d6e4..3a24259 100644 --- a/Makefile +++ b/Makefile @@ -40,7 +40,6 @@ DOC := ./scripts/cls2tex.sh # NOTE: .sty and .cls are essentially the same in terms of documentation # generation... -# XXX should these depend on the $(DOC) script ??? %.tex: %.sty %-meta.tex $(DOC) $< > $@ diff --git a/scripts/cls2tex.sh b/scripts/cls2tex.sh index 4d1766d..8935734 100755 --- a/scripts/cls2tex.sh +++ b/scripts/cls2tex.sh @@ -3,6 +3,11 @@ SCRIPT_NAME=$(basename $0) +printusage(){ + echo "Usage:" + echo " $SCRIPT_NAME [OPTIONS] [[INPUT] OUTPUT]" +} + printhelp(){ echo "Generate docs from latex package/class" echo @@ -41,11 +46,6 @@ printhelp(){ echo " in both the repo and in installed form, so .dtx is not used." } -printusage(){ - echo "Usage:" - echo " $SCRIPT_NAME [OPTIONS] [[INPUT] OUTPUT]" -} - printerror(){ echo Error: $@ echo