add commentout entrypoint
authoralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 08:59:44 +0000 (08:59 +0000)
committeralfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524>
Tue, 5 Sep 2006 08:59:44 +0000 (08:59 +0000)
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1465 6f19259b-4bc3-4df7-8a09-765794883524

Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java
Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java

index 5f84ccd6538b74286a78a5c4802bfa20b63c1b6a..a0ce0c21010b8ff3f5bc95035be6014027f462dc 100644 (file)
@@ -21,7 +21,7 @@ public class MigrationTool {
        public static UI ui = null;\r
        public static Database db = null;\r
 \r
-       public static String MIGRATIONCOMMENT = "//%$//";\r
+       public static String MIGRATIONCOMMENT = "//%@//";\r
 \r
        public static boolean printModuleInfo = false;\r
        public static boolean doCritic = false;\r
index e6d86b60b43afba0592174b95562a54e8bd8866b..67e5bc25677ee4fdd9067039a14e41f5aaad6d2c 100644 (file)
@@ -104,15 +104,9 @@ public final class SourceFileReplacer implements Common.ForDoAll {
                                mi.hashrequiredr9libs.add("UefiRuntimeServicesTableLib");\r
                        }\r
                }\r
-               /*\r
                // remove EFI_DRIVER_ENTRY_POINT\r
-               Pattern patentrypoint = Pattern.compile("EFI_DRIVER_ENTRY_POINT[^\\}]*\\}");\r
-               Matcher matentrypoint = patentrypoint.matcher(line);\r
-               if (matentrypoint.find()) {\r
-                       MigrationTool.ui.println("Deleting Entry_Point");\r
-                       line = matentrypoint.replaceAll("");\r
-               }\r
-               */\r
+               wholeline = wholeline.replaceAll("(EFI_\\w+_ENTRY_POINT)", MigrationTool.MIGRATIONCOMMENT + " $1");\r
+               \r
                // start replacing names\r
                String r8thing;\r
                String r9thing;\r