Removed extra lines and spaces in the catalog.xml file creation, also wrapped it...
authorlhauch <lhauch@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 10 Oct 2006 18:40:50 +0000 (18:40 +0000)
committerlhauch <lhauch@de2fecce-e211-0410-80a6-f3fac2684e05>
Tue, 10 Oct 2006 18:40:50 +0000 (18:40 +0000)
git-svn-id: https://edk2.tianocore.org/svn/edk2/trunk@1712 de2fecce-e211-0410-80a6-f3fac2684e05

edk2/Tools/build.xml

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