Func lf;\r
\r
if (rd.ready()) {\r
- System.out.println("Found " + filename + " , Importing Library Database");\r
+ System.out.println("Found " + filename + ", Importing Library Database.");\r
while ((line = rd.readLine()) != null) {\r
if (line.length() != 0) {\r
linecontext = line.split(",");\r
Guid gu;\r
\r
if (rd.ready()) {\r
- System.out.println("Found " + filename + " , Importing " + type + " Database");\r
+ System.out.println("Found " + filename + ", Importing " + type + " Database.");\r
while ((line = rd.readLine()) != null) {\r
if (line.length() != 0) {\r
linecontext = line.split(",");\r
Macro mc;\r
\r
if (rd.ready()) {\r
- System.out.println("Found " + filename + " , Importing Macro Database");\r
+ System.out.println("Found " + filename + ", Importing Macro Database.");\r
while ((line = rd.readLine()) != null) {\r
if (line.length() != 0) {\r
linecontext = line.split(",");\r
} else if (list[i].contains(".uni")) {\r
localmodulesources.add(list[i]);\r
} else if (list[i].contains(".inf")) {\r
- if (ui.yesOrNo("Found .inf file : " + list[i] + "\nUse this file as this module's .inf ?")) {\r
+ if (ui.yesOrNo("Found .inf file : " + list[i] + "\nDo you want to use this file as this module's .inf?")) {\r
hasInf = true;\r
infname = list[i];\r
} else {\r
continue;\r
}\r
} else if (list[i].contains(".msa")) {\r
- if (ui.yesOrNo("Found .msa file : " + list[i] + "\nUse this file as this module's .msa ?")) {\r
+ if (ui.yesOrNo("Found .msa file : " + list[i] + "\nDo you want to use this file as this module's .msa?")) {\r
hasMsa = true;\r
msaname = list[i];\r
} else {\r
} else if (hasMsa) {\r
mr.readMsa(msaname);\r
} else {\r
- ui.println("No Inf Nor Msa Found");\r
+ ui.println("No INF nor MSA file found!");\r
}\r
\r
CommentOutNonLocalHFile();\r
new SourceFileReplacer(modulepath, this, db, ui).flush(); // some adding library actions are taken here,so it must be put before "MsaWriter"\r
\r
// show result\r
- if (ui.yesOrNo("Parse Module Information Complete . See details ?")) {\r
+ if (ui.yesOrNo("Parse of the Module Information has completed. View details?")) {\r
ui.println("\nModule Information : ");\r
ui.println("Entrypoint : " + entrypoint);\r
show(protocol, "Protocol : ");\r
\r
ui.println("Errors Left : " + db.error);\r
ui.println("Complete!");\r
- ui.println("Your R9 module is placed at " + modulepath + File.separator + "result");\r
- ui.println("Your logfile is placed at " + modulepath);\r
+ ui.println("Your R9 module was placed here: " + modulepath + File.separator + "result");\r
+ ui.println("Your logfile was placed here: " + modulepath);\r
}\r
\r
private void show(Set<String> hash, String show) {\r
public static void main(String[] args) throws Exception {\r
FirstPanel.init();\r
}\r
-}
\ No newline at end of file
+}\r
Iterator<FilenameDocument.Filename> li = sourcefiles.getFilenameList().iterator();\r
while (li.hasNext()) {\r
if (!mi.localmodulesources.contains(temp = li.next().toString())) {\r
- System.out.println("Source File Missing ! : " + temp);\r
+ System.out.println("Source File Missing! : " + temp);\r
}\r
}\r
}\r
\r
public void readInf(String name) throws Exception {\r
- System.out.println("Reading From Inf : " + name);\r
+ System.out.println("Parsing INF file: " + name);\r
BufferedReader rd = new BufferedReader(new FileReader(modulepath + File.separator + name));\r
String line;\r
String[] linecontext;\r
linecontext = line.split(" ");\r
if (linecontext[2].length() != 0) {\r
if (!mi.localmodulesources.contains(linecontext[2])) {\r
- System.out.println("Source File Missing ! : " + linecontext[2]);\r
+ System.out.println("Source File Missing! : " + linecontext[2]);\r
}\r
}\r
}\r
}\r
}\r
}\r
-}
\ No newline at end of file
+}\r
if (mi.modulename != null) {\r
msaheader.setModuleName(mi.modulename);\r
} else {\r
- msaheader.setModuleName(mi.modulename = Query("ModuleName Not Found . Please Input ModuleName"));\r
+ msaheader.setModuleName(mi.modulename = Query("Module Name Not Found! Please Input ModuleName"));\r
}\r
if (mi.guidvalue != null) {\r
msaheader.setGuidValue(mi.guidvalue);\r
} else {\r
- msaheader.setGuidValue(mi.guidvalue = Query("GuidValue Not Found . Please Input GuidValue"));\r
+ msaheader.setGuidValue(mi.guidvalue = Query("Guid Value Not Found! Please Input Guid Value"));\r
}\r
if (mi.moduletype != null) {\r
if (mi.moduletype.contains("PEI")) {\r
msaheader.setModuleType(ModuleTypeDef.Enum.forString("DXE_DRIVER"));\r
}\r
} else {\r
- msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("GuidValue Not Found . Please Input GuidValue")));\r
+ msaheader.setModuleType(ModuleTypeDef.Enum.forString(mi.moduletype = Query("Guid Value Not Found! Please Input Guid Value")));\r
}\r
\r
msaheader.setCopyright("Copyright (c) 2006, Intel Corporation");\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