git-svn-id: https://buildtools.tianocore.org/svn/buildtools/trunk/BaseTools@231 7335b...
authorhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 29 Jun 2007 02:10:20 +0000 (02:10 +0000)
committerhche10x <hche10x@7335b38e-4728-0410-8992-fb3ffe349368>
Fri, 29 Jun 2007 02:10:20 +0000 (02:10 +0000)
Source/Python/StrGather.py

index 2f4d28a..181ce75 100644 (file)
@@ -124,7 +124,7 @@ def CreateCFileStringValue(Name, Language, Value, Offset):
 def CreateCFileContent(BaseName, UniObjectClass):\r
     Str = ''\r
 \r
-    Str = WriteLine(Str, CHAR_ARRAY_DEFIN + ' ' + BaseName + '[] = {\n' )\r
+    Str = WriteLine(Str, CHAR_ARRAY_DEFIN + ' ' + BaseName + COMMON_FILE_NAME + '[] = {\n' )\r
     for IndexI in range(len(UniObjectClass.LanguageDef)):\r
         Language = UniObjectClass.LanguageDef[IndexI][0]\r
         LangPrintName = UniObjectClass.LanguageDef[IndexI][1]\r
@@ -259,7 +259,7 @@ if __name__ == '__main__':
     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
     SkipList = ['.inf', '.uni']\r
-    BaseName = 'DriverSampleStrings'\r
+    BaseName = 'DriverSample'\r
     (h, c) = GetStringFiles(UniFileList, IncludeList, SkipList, BaseName)\r
     hfile = open('C:\string.h', 'w')\r
     cfile = open('C:\string.c', 'w')\r