mirror of
https://github.com/acidanthera/audk.git
synced 2025-07-28 16:14:04 +02:00
Added <if> task to check if FrameworkDatabase.db exists or not before doing copy
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1155 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
d94d73c282
commit
3c8842bce5
@ -11,6 +11,7 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
-->
|
-->
|
||||||
<project name="Tools" default="all" basedir=".">
|
<project name="Tools" default="all" basedir=".">
|
||||||
|
|
||||||
|
<taskdef resource="net/sf/antcontrib/antlib.xml"/>
|
||||||
<property environment="env"/>
|
<property environment="env"/>
|
||||||
|
|
||||||
<target name="all" depends="C_Code"/>
|
<target name="all" depends="C_Code"/>
|
||||||
@ -60,7 +61,14 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
|
|||||||
</echo>
|
</echo>
|
||||||
<copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>
|
<copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="false"/>
|
||||||
<copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>
|
<copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="false"/>
|
||||||
<copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" overwrite="false"/>
|
<if>
|
||||||
|
<not>
|
||||||
|
<available file="Conf/FrameworkDatabase.db"/>
|
||||||
|
</not>
|
||||||
|
<then>
|
||||||
|
<copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db"/>
|
||||||
|
</then>
|
||||||
|
</if>
|
||||||
</target>
|
</target>
|
||||||
|
|
||||||
<target name="clean">
|
<target name="clean">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user