]> git.proxmox.com Git - mirror_edk2.git/blobdiff - EmbeddedPkg/Ebl/Script.c
Bug fix in PatchFv.py for GCC build in IntelFspPkg.
[mirror_edk2.git] / EmbeddedPkg / Ebl / Script.c
index 123ebf388c2dbaccf991ce8db8a807ed2f9e1764..a739e37dd907690a4d65953046a58ea811849eb0 100644 (file)
 \r
 /**\r
   Execute the passed in file like a series of commands. The ; can be used on\r
-  a single line to indicate multiple commands per line. The Ascii text file \r
-  can contain any number of lines. The following line termination forms are \r
+  a single line to indicate multiple commands per line. The Ascii text file\r
+  can contain any number of lines. The following line termination forms are\r
   supported:\r
     LF   : Unix, Mac OS X*, BeOS\r
     CR+LF: MS-DOS*, Microsoft Windows*\r
-    CR   : Commodore, Apple II, and realy Mac OS\r
-    LF+CR: for simplicity and completeness \r
+    CR   : Commodore, Apple II, and really Mac OS\r
+    LF+CR: for simplicity and completeness\r
 \r
   Argv[0] - "script"\r
   Argv[1] - Device Name:path for the file to load\r
@@ -35,8 +35,8 @@
   script fv1:\script.txt\r
 \r
   @param  Argc   Number of command arguments in Argv\r
-  @param  Argv   Array of strings that represent the parsed command line. \r
-                 Argv[0] is the comamnd name\r
+  @param  Argv   Array of strings that represent the parsed command line.\r
+                 Argv[0] is the command name\r
 \r
   @return EFI_SUCCESS\r
 \r
@@ -54,8 +54,8 @@ EblScriptCmd (
   CHAR8                         *Ptr;\r
   CHAR8                         *ScanPtr;\r
   UINTN                         CmdLineSize;\r
-  \r
-  \r
+\r
+\r
 \r
   if (Argc < 2) {\r
     // file name required\r
@@ -85,15 +85,15 @@ EblScriptCmd (
           CmdLineSize++;\r
           break;\r
         }\r
-        \r
+\r
       }\r
 \r
       Status = ProcessCmdLine (Ptr, CmdLineSize);\r
     }\r
-  \r
+\r
     FreePool (Address);\r
   }\r
\r
+\r
   EfiClose (File);\r
   return Status;\r
 }\r
@@ -103,7 +103,7 @@ EblScriptCmd (
 GLOBAL_REMOVE_IF_UNREFERENCED const EBL_COMMAND_TABLE mScriptTemplate[] = {\r
   {\r
     "script",\r
-    " device:path; load an ascii file and execute it like commands", \r
+    " device:path; load an ascii file and execute it like commands",\r
     NULL,\r
     EblScriptCmd\r
   }\r