tidy all output documents, additional perl cleanup is obsolete
authorJan Pospíšil <honik@ntc.zcu.cz>
Mon, 11 Dec 2006 15:13:32 +0000 (15:13 +0000)
committerJan Pospíšil <honik@ntc.zcu.cz>
Mon, 11 Dec 2006 15:13:32 +0000 (15:13 +0000)
org.glite.lb.ws-interface/Makefile

index c53cae7..65be4aa 100644 (file)
@@ -17,7 +17,7 @@ SUFFIXES = .T
 VPATH=${top_srcdir}/src
 AT3=perl -I${top_srcdir}/project ${top_srcdir}/project/at3
 XSLTPROC:=xsltproc
-TIDY=tidy
+TIDY=tidy -i -q --show-warnings no --tidy-mark no --wrap 0
 XMLLINT:=xmllint
 docbookxls:=http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl
 
@@ -71,10 +71,13 @@ clean:
 
 ${WSDL}: %.wsdl: %.xml puke-wsdl.xsl
        ${XSLTPROC} ../src/puke-wsdl.xsl $< >$@
-       -${TIDY} -wrap 10000 -xml -m -i -q $@
-       -perl -i -n -e 'if (/^\s*$$/) { $$empty .= "\n"; } elsif (/^\s*<(xsd:)?(enumeration|element|input|output|fault)/) { print $$_; $$empty = "";} else { print "$$empty$$_"; $$empty=""; }; ' $@
+       -${TIDY} -xml -m $@
+# XXX: obsolete
+#      -perl -i -n -e 'if (/^\s*$$/) { $$empty .= "\n"; } elsif (/^\s*<(xsd:)?(enumeration|element|input|output|fault)/) { print $$_; $$empty = "";} else { print "$$empty$$_"; $$empty=""; }; ' $@
 
 LB.html: doc.xml LBTypes.xml LB.xml puke-ug.xsl
        ${XSLTPROC} --novalid ../src/puke-ug.xsl $< >doc-html.xml
+       -${TIDY} -xml -m doc-html.xml
        ${XMLLINT} --valid --noout doc-html.xml
        ${XSLTPROC} --stringparam  chapter.autolabel 0 ${docbookxls} doc-html.xml >$@
+       -${TIDY} -asxhtml -m $@