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