]> git.proxmox.com Git - mirror_edk2.git/commitdiff
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1235 6f19259b...
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 10 Aug 2006 09:48:30 +0000 (09:48 +0000)
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Thu, 10 Aug 2006 09:48:30 +0000 (09:48 +0000)
Tools/bin/MigrationTools [new file with mode: 0644]
Tools/bin/MigrationTools.bat [new file with mode: 0644]

diff --git a/Tools/bin/MigrationTools b/Tools/bin/MigrationTools
new file mode 100644 (file)
index 0000000..c0d13d4
--- /dev/null
@@ -0,0 +1,15 @@
+#
+# Copyright (c) 2006, Intel Corporation
+# All rights reserved. This program and the accompanying materials
+# are licensed and made available under the terms and conditions of the BSD License
+# which accompanies this distribution.  The full text of the license may be found at
+# http://opensource.org/licenses/bsd-license.php
+# 
+# THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
+# WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
+#
+
+export CLASSPATH=$CLASSPATH:$WORKSPACE/Tools/bin/MigrationTools.jar
+
+# Run Migration Tool
+java org.tianocore.migration.ModuleInfo
\ No newline at end of file
diff --git a/Tools/bin/MigrationTools.bat b/Tools/bin/MigrationTools.bat
new file mode 100644 (file)
index 0000000..fd6c593
--- /dev/null
@@ -0,0 +1,74 @@
+@REM\r
+@REM Copyright (c) 2006, Intel Corporation\r
+@REM All rights reserved. This program and the accompanying materials\r
+@REM are licensed and made available under the terms and conditions of the BSD License\r
+@REM which accompanies this distribution.  The full text of the license may be found at\r
+@REM http://opensource.org/licenses/bsd-license.php\r
+@REM \r
+@REM THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+@REM WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+@REM\r
+\r
+@echo off\r
+\r
+:check_java\r
+if "%JAVA_HOME%"=="" goto no_jdk\r
+:check_wks\r
+if "%WORKSPACE%"=="" goto no_wks\r
+:check_ant\r
+if "%ANT_HOME%"=="" goto no_ant\r
+:check_xmlbeans\r
+if "%XMLBEANS_HOME%"=="" goto no_xmlbeans\r
+:check_surfacearea\r
+if not exist %WORKSPACE%\Tools\Jars\SurfaceArea.jar (\r
+  goto no_surfacearea\r
+)\r
+:check_migration\r
+if not exist %WORKSPACE%\Tools\bin\MigrationTools.jar (\r
+  goto no_migration\r
+)\r
+\r
+@REM Run Migration\r
+call "java" org.tianocore.migration.ModuleInfo\r
+\r
+goto end\r
+\r
+:no_jdk\r
+@echo.\r
+@echo !!! Please set JAVA_HOME !!!\r
+@echo.\r
+goto check_wks\r
+\r
+:no_wks\r
+@echo.\r
+@echo !!! Please set WORKSPACE !!!\r
+@echo.\r
+goto check_ant\r
+\r
+:no_ant\r
+@echo.\r
+@echo !!! Please set ANT_HOME !!!\r
+@echo.\r
+goto check_xmlbeans\r
+\r
+:no_xmlbeans\r
+@echo.\r
+@echo !!! Please set XMLBEANS_HOME !!!\r
+@echo.\r
+goto end\r
+\r
+:no_surfacearea\r
+@echo.\r
+@echo !!! Please run edksetup.bat to build SurfaceArea.jar !!!\r
+@echo.\r
+goto end\r
+\r
+:no_migration\r
+@echo.\r
+@echo !!! Please run edksetup.bat to build MigrationTools.jar !!!\r
+@echo.\r
+goto end\r
+\r
+:end\r
+@echo on\r
+\r