git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@241 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Sat, 30 Jun 2007 13:27:49 +0000 (13:27 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Sat, 30 Jun 2007 13:27:49 +0000 (13:27 +0000)
Source/Python/StrGather.py

index 181ce75..2533f70 100644 (file)
@@ -137,7 +137,7 @@ def CreateCFileContent(BaseName, UniObjectClass):
                 Count = Count + 1\r
 \r
         Str = WriteLine(Str, '//******************************************************************************')\r
-        Str = WriteLine(Str, COMMENT + 'Start of string definitions for ' + Language + '/' + LangPrintName)\r
+        Str = WriteLine(Str, COMMENT + 'Start of string definitions for ' + Language)\r
         \r
         #\r
         # EFI_HII_STRING_PACK_HEADER\r
@@ -243,7 +243,7 @@ def GetStringFiles(UniFilList, IncludeList, SkipList, BaseName):
     \r
     HFile = CreateHFile(BaseName, Uni)\r
     CFile = CreateCFile(BaseName, Uni)\r
-\r
+    \r
     return HFile, CFile\r
 \r
 def Write(Target, Item):\r
@@ -256,15 +256,17 @@ def WriteLine(Target, Item):
 # script.\r
 if __name__ == '__main__':\r
     print 'start'\r
-    UniFileList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample\\inventorystrings.uni', 'C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample\\VfrStrings.uni']\r
-    IncludeList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample']\r
+    \r
+    #UniFileList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample\\inventorystrings.uni', 'C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample\\VfrStrings.uni']\r
+    #IncludeList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\DriverSample']\r
+    UniFileList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe\\SetupBrowserStr.uni']\r
+    IncludeList = ['C:\\Tiano\\Edk\\Sample\\Universal\\UserInterface\\SetupBrowser\\Dxe']\r
     SkipList = ['.inf', '.uni']\r
-    BaseName = 'DriverSample'\r
+    BaseName = 'SetupBrowser'\r
     (h, c) = GetStringFiles(UniFileList, IncludeList, SkipList, BaseName)\r
     hfile = open('C:\string.h', 'w')\r
     cfile = open('C:\string.c', 'w')\r
     hfile.write(h)\r
     cfile.write(c)\r
-    #print h\r
-    #print c\r
+    \r
     print 'end'\r