@echo off

call ant -f ant-dtd.xml

perl ant.pl < ant-dtd.dtd > ant-new.dtd

rm ant-dtd.dtd

.\dtd2xsd\dtd2xsd.pl -alias -pcdata -mapfile ant.map -skipxmlattr -prefix ant -ns "http://jakarta.apache.org/ant/" ant.dtd > ../ant.auto.xsd

