doc: invoke sanitization script from make
authorRamprasad Venkataraman <ramv@illinois.edu>
Mon, 6 Aug 2012 20:14:48 +0000 (15:14 -0500)
committerRamprasad Venkataraman <ramv@illinois.edu>
Mon, 6 Aug 2012 20:14:48 +0000 (15:14 -0500)
doc/Makefile.common
doc/l2h_sanitize_markup.sh

index 64de41a5bdd0ccd66a1cd0cd70eda16cb764a425..dcab95b77b7ba758d12f1ddbe025c31a5f53050b 100644 (file)
@@ -57,6 +57,7 @@ html: $(FILE) html1page
 $(FILE): setup $(TEX) $(FILE).aux
        export MANUALTITLE=$(DOCTITLE) && $(LATEX2HTML) $(FILE).tex && unset MANUALTITLE
        ../l2h_sanitize_markup.sh
+       for f in $@/*.html; do echo "Sanitizing $$f"; ../markupSanitizer.py $$f > tmpop && cat tmpop > $$f && rm tmpop; done
 
 html1page: setup $(TEX) $(FILE).aux
        $(L2H) -split 0 $(FILE).tex
index d7ee67660b7f33469fa3e66479086f5a81e76f89..55b31e3ba22e90e75e8f7c468c23435b412697de 100755 (executable)
@@ -29,6 +29,5 @@ do
        sed -e 's!'$cwd'/!!g' \
            -e 's|replace_with_script|script|g' \
        tmp > $f || die "error running sed on $f"
-    ../markupSanitizer.py $f > tmp
     cat tmp > $f
 done