+/** @file\r
+ \r
+ Copyright (c) 2006, Intel Corporation\r
+ All rights reserved. This program and the accompanying materials\r
+ are licensed and made available under the terms and conditions of the BSD License\r
+ which accompanies this distribution. The full text of the license may be found at\r
+ http://opensource.org/licenses/bsd-license.php\r
+ \r
+ THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
+ WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
+ \r
+ **/\r
package org.tianocore.migration;\r
\r
import java.io.*;\r
public void flush() throws Exception {\r
PrintWriter outfile;\r
String temp = null;\r
- if (ui.yesOrNo("Change Source Code is to be doing . See details ?")) {\r
+ if (ui.yesOrNo("Changes will be made to the Source Code. View details?")) {\r
showdetails = true;\r
}\r
File tempdir = new File(modulepath + File.separator + "result" + File.separator);\r
String[] list = new File(modulepath + File.separator + "temp").list(); //what I change is the non-local .h commented-out files\r
for (int i = 0 ; i < list.length ; i++) {\r
if (list[i].contains(".c")) {\r
- ui.println("\nModifying file : " + list[i]);\r
+ ui.println("\nModifying file: " + list[i]);\r
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + list[i])));\r
outfile.append(sourcefilereplace(modulepath + File.separator + "temp" + File.separator + list[i]));\r
outfile.flush();\r
} else {\r
continue;\r
}\r
- ui.println("\nCopying file : " + temp);\r
+ ui.println("\nCopying file: " + temp);\r
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + temp)));\r
outfile.append(sourcefiletostring(modulepath + File.separator + "temp" + File.separator + list[i]));\r
outfile.flush();\r
// replace BS -> gBS , RT -> gRT\r
Matcher mat = pat.matcher(line);\r
if (mat.find()) { // add a library here\r
- ui.println("Converting all BS->gBS,RT->gRT");\r
+ ui.println("Converting all BS->gBS, RT->gRT");\r
line = mat.replaceAll("g$1$2$3"); //unknown correctiveness\r
}\r
mat.reset();\r
if (r8only.contains(temp.r8thing)) {\r
mi.localmodulesources.add("R8Lib.h");\r
mi.localmodulesources.add("R8Lib.c");\r
- mi.localmoduleheaders.add("R8Lib.h");\r
filer8only.add(r8thing);\r
mi.hashr8only.add(r8thing);\r
addr8 = true;\r