Re-Follow...

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@1265 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
alfred 2006-08-15 04:43:21 +00:00
parent 5d2d04225a
commit f7fee0ea9d
2 changed files with 8 additions and 8 deletions

View File

@ -81,7 +81,7 @@ public class ModuleInfo {
dirScan("");
String filename = null;
if (msaorinf.isEmpty()) {
ui.println("No .inf nor .msa file found! Tool Halt!");
ui.println("No INF nor MSA file found!");
System.exit(0);
} else {
filename = ui.choose("Found .inf or .msa file in the module\nChoose one Please", msaorinf.toArray());
@ -99,7 +99,7 @@ public class ModuleInfo {
new SourceFileReplacer(modulepath, this, db, ui).flush(); // some adding library actions are taken here,so it must be put before "MsaWriter"
// show result
if (ui.yesOrNo("Parse Module Information Complete . See details ?")) {
if (ui.yesOrNo("Parse of the Module Information has completed. View details?")) {
ui.println("\nModule Information : ");
ui.println("Entrypoint : " + entrypoint);
show(protocol, "Protocol : ");
@ -122,8 +122,8 @@ public class ModuleInfo {
ui.println("Errors Left : " + db.error);
ui.println("Complete!");
ui.println("Your R9 module is placed at " + modulepath + File.separator + "result");
ui.println("Your logfile is placed at " + modulepath);
ui.println("Your R9 module was placed here: " + modulepath + File.separator + "result");
ui.println("Your logfile was placed here: " + modulepath);
}
private void show(Set<String> hash, String show) {

View File

@ -71,7 +71,7 @@ public class SourceFileReplacer {
PrintWriter outfile;
String outname = null;
String inname = null;
if (ui.yesOrNo("Change Source Code is to be doing . See details ?")) {
if (ui.yesOrNo("Changes will be made to the Source Code. View details?")) {
showdetails = true;
}
@ -84,7 +84,7 @@ public class SourceFileReplacer {
} else {
outname = inname;
}
ui.println("\nModifying file : " + inname);
ui.println("\nModifying file: " + inname);
mi.ensureDir(modulepath + File.separator + "result" + File.separator + outname);
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + outname)));
outfile.append(sourcefilereplace(modulepath + File.separator + "temp" + File.separator + inname));
@ -96,7 +96,7 @@ public class SourceFileReplacer {
} else {
outname = inname;
}
ui.println("\nCopying file : " + inname);
ui.println("\nCopying file: " + inname);
mi.ensureDir(modulepath + File.separator + "result" + File.separator + outname);
outfile = new PrintWriter(new BufferedWriter(new FileWriter(modulepath + File.separator + "result" + File.separator + outname)));
outfile.append(sourcefiletostring(modulepath + File.separator + "temp" + File.separator + inname));
@ -173,7 +173,7 @@ public class SourceFileReplacer {
// replace BS -> gBS , RT -> gRT
Matcher mat = pat.matcher(line);
if (mat.find()) { // add a library here
ui.println("Converting all BS->gBS,RT->gRT");
ui.println("Converting all BS->gBS, RT->gRT");
line = mat.replaceAll("g$1$2$3"); //unknown correctiveness
}
mat.reset();