summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-18 10:36:58 +0000
committerjwang36 <jwang36@6f19259b-4bc3-4df7-8a09-765794883524>2006-09-18 10:36:58 +0000
commite5890ee5f8a41818cc787ec63e3a65ac6a46e3fe (patch)
treea4fe434d82a49392ddcb4bf16097f8e702e768b3
parent3e73f377a8b366c595c2790876e6409fea48191d (diff)
downloadedk2-platforms-e5890ee5f8a41818cc787ec63e3a65ac6a46e3fe.tar.xz
Added check to skip generating target.txt and tools_def.txt if they already exist.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1550 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r--Tools/build.xml20
1 files changed, 18 insertions, 2 deletions
diff --git a/Tools/build.xml b/Tools/build.xml
index 06cc9211d7..ea6a2501d3 100644
--- a/Tools/build.xml
+++ b/Tools/build.xml
@@ -75,8 +75,24 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
rewritePrefix="file:/]]>${env.WORKSPACE}<![CDATA[/Tools/XMLSchema/"/>
</catalog>]]>
</echo>
- <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>
- <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>
+ <if>
+ <not>
+ <available file="Conf/tools_def.txt"/>
+ </not>
+ <then>
+ <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt"/>
+ </then>
+ </if>
+
+ <if>
+ <not>
+ <available file="Conf/target.txt"/>
+ </not>
+ <then>
+ <copy file="Conf/target.template" tofile="Conf/target.txt"/>
+ </then>
+ </if>
+
<if>
<not>
<available file="Conf/FrameworkDatabase.db"/>