]> git.proxmox.com Git - mirror_edk2.git/blobdiff - Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java
Fixed grammar in messages.
[mirror_edk2.git] / Tools / Source / MigrationTools / org / tianocore / migration / SourceFileReplacer.java
index d9b5a108f1fa826c6932f8d9994b353c347415df..2df0ffd104b4d9be5788873ffeb8c443875ae9b3 100644 (file)
@@ -1,3 +1,15 @@
+/** @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
@@ -58,7 +70,7 @@ public class SourceFileReplacer {
        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
@@ -66,7 +78,7 @@ public class SourceFileReplacer {
                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
@@ -81,7 +93,7 @@ public class SourceFileReplacer {
                                } 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
@@ -155,7 +167,7 @@ public class SourceFileReplacer {
                // 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
@@ -204,7 +216,6 @@ public class SourceFileReplacer {
                                                        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