Removed extra lines and spaces in the catalog.xml file creation, also wrapped it in a test for availability

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1712 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
lhauch 2006-10-10 18:40:50 +00:00
parent e2f34bcdaf
commit c779483003
1 changed files with 9 additions and 3 deletions

View File

@ -75,8 +75,12 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
</target> </target>
<target name="makeCatalog"> <target name="makeCatalog">
<echo file="XMLSchema/catalog.xml"> <if>
<![CDATA[<?xml version="1.0"?> <not>
<available file="XMLSchema/catalog.xml"/>
</not>
<then>
<echo file="XMLSchema/catalog.xml"><![CDATA[<?xml version="1.0"?>
<!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd"> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.xsd">
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/" <rewriteSystem systemIdStartString="http://www.TianoCore.org/2006/Edk2.0/"
@ -85,6 +89,8 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/> rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
</catalog>]]> </catalog>]]>
</echo> </echo>
</then>
</if>
<if> <if>
<not> <not>
<available file="Conf/tools_def.txt"/> <available file="Conf/tools_def.txt"/>