diff options
author | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 07:07:24 +0000 |
---|---|---|
committer | wuyizhong <wuyizhong@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-10-17 07:07:24 +0000 |
commit | 2fcfed38cbdd18fdda427588fe40718a374af6e6 (patch) | |
tree | 8ba8a81700138682db2c9be445f201c14a2e586b /Tools | |
parent | 3683e55034409db9b43758ee9ebf8fe3d897fbd7 (diff) | |
download | edk2-platforms-2fcfed38cbdd18fdda427588fe40718a374af6e6.tar.xz |
Provide a way to update config files[target.txt, tools_def.txt, FrameworkDatabase.db] even they are existed. Using edksetup.bat Reconfig. Give a more detail edksetup.bat help usage.
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1773 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/build.xml | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/Tools/build.xml b/Tools/build.xml index caef839b50..9d4e6dbc39 100644 --- a/Tools/build.xml +++ b/Tools/build.xml @@ -119,6 +119,55 @@ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. </if>
</target>
+ <target name="reconfig">
+ <!-- backup all config files -->
+ <if>
+ <available file="Conf/target.txt"/>
+ <then>
+ <echo message="Backup Conf/target.txt to Conf/target.txt.bak" />
+ <copy file="Conf/target.txt" tofile="Conf/target.txt.bak" overwrite="true" />
+ </then>
+ </if>
+ <if>
+ <available file="Conf/tools_def.txt"/>
+ <then>
+ <echo message="Backup Conf/tools_def.txt to Conf/tools_def.txt.bak" />
+ <copy file="Conf/tools_def.txt" tofile="Conf/tools_def.txt.bak" overwrite="true" />
+ </then>
+ </if>
+ <if>
+ <available file="Conf/FrameworkDatabase.db"/>
+ <then>
+ <echo message="Backup Conf/FrameworkDatabase.db to Conf/FrameworkDatabase.db.bak" />
+ <copy file="Conf/FrameworkDatabase.db" tofile="Conf/FrameworkDatabase.db.bak" overwrite="true" />
+ </then>
+ </if>
+
+ <if>
+ <available file="Conf/tools_def.template"/>
+ <then>
+ <echo message="Copy file from Conf/tools_def.template to Conf/tools_def.txt" />
+ <copy file="Conf/tools_def.template" tofile="Conf/tools_def.txt" overwrite="true" />
+ </then>
+ </if>
+
+ <if>
+ <available file="Conf/target.template"/>
+ <then>
+ <echo message="Copy file from Conf/target.template to Conf/target.txt" />
+ <copy file="Conf/target.template" tofile="Conf/target.txt" overwrite="true" />
+ </then>
+ </if>
+
+ <if>
+ <available file="Conf/FrameworkDatabase.template"/>
+ <then>
+ <echo message="Copy file from Conf/FrameworkDatabase.template to Conf/FrameworkDatabase.db" />
+ <copy file="Conf/FrameworkDatabase.template" tofile="Conf/FrameworkDatabase.db" overwrite="true" />
+ </then>
+ </if>
+ </target>
+
<target name="clean">
<subant target="clean" inheritall="false">
<filelist dir="."
|