diff options
author | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 08:59:44 +0000 |
---|---|---|
committer | alfred <alfred@6f19259b-4bc3-4df7-8a09-765794883524> | 2006-09-05 08:59:44 +0000 |
commit | eff5170cce433b0cb6a77691237af414b6ce3818 (patch) | |
tree | 51e84ef415754d413125c1fbf5d5503a5279d8f7 | |
parent | 16b7eeef5489a5e16da1574c13df53990ffac2cf (diff) | |
download | edk2-platforms-eff5170cce433b0cb6a77691237af414b6ce3818.tar.xz |
add commentout entrypoint
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1465 6f19259b-4bc3-4df7-8a09-765794883524
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java | 2 | ||||
-rw-r--r-- | Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java | 10 |
2 files changed, 3 insertions, 9 deletions
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java b/Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java index 5f84ccd653..a0ce0c2101 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/MigrationTool.java @@ -21,7 +21,7 @@ public class MigrationTool { public static UI ui = null;
public static Database db = null;
- public static String MIGRATIONCOMMENT = "//%$//";
+ public static String MIGRATIONCOMMENT = "//%@//";
public static boolean printModuleInfo = false;
public static boolean doCritic = false;
diff --git a/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java b/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java index e6d86b60b4..67e5bc2567 100644 --- a/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java +++ b/Tools/Source/MigrationTools/org/tianocore/migration/SourceFileReplacer.java @@ -104,15 +104,9 @@ public final class SourceFileReplacer implements Common.ForDoAll { mi.hashrequiredr9libs.add("UefiRuntimeServicesTableLib");
}
}
- /*
// remove EFI_DRIVER_ENTRY_POINT
- Pattern patentrypoint = Pattern.compile("EFI_DRIVER_ENTRY_POINT[^\\}]*\\}");
- Matcher matentrypoint = patentrypoint.matcher(line);
- if (matentrypoint.find()) {
- MigrationTool.ui.println("Deleting Entry_Point");
- line = matentrypoint.replaceAll("");
- }
- */
+ wholeline = wholeline.replaceAll("(EFI_\\w+_ENTRY_POINT)", MigrationTool.MIGRATIONCOMMENT + " $1");
+
// start replacing names
String r8thing;
String r9thing;
|