浏览代码

+ patch from Graeme Geldenhuys to include version info

git-svn-id: trunk@4730 -
michael 19 年之前
父节点
当前提交
80b5ecaecd
共有 3 个文件被更改,包括 10 次插入2 次删除
  1. 3 2
      utils/fpdoc/dglobals.pp
  2. 3 0
      utils/fpdoc/fpdoc.pp
  3. 4 0
      utils/fpdoc/makeskel.pp

+ 3 - 2
utils/fpdoc/dglobals.pp

@@ -99,8 +99,9 @@ resourcestring
   // HTML usage
   // HTML usage
   SHTMLUsageFooter = 'Append xhtml from file as footer to html page';
   SHTMLUsageFooter = 'Append xhtml from file as footer to html page';
 
 
-  STitle                      = 'FPDoc - Free Pascal Documentation Tool';
-  SCopyright                  = '(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [email protected]';
+  STitle           = 'FPDoc - Free Pascal Documentation Tool';
+  SVersion         = 'Version %s [%s]';
+  SCopyright       = '(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [email protected]';
 
 
   SCmdLineHelp     = 'Usage: %s [options]';
   SCmdLineHelp     = 'Usage: %s [options]';
   SUsageOption010  = '--content         Create content file for package cross-references';
   SUsageOption010  = '--content         Create content file for package cross-references';

+ 3 - 0
utils/fpdoc/fpdoc.pp

@@ -30,6 +30,8 @@ uses
 const
 const
   OSTarget: String = {$I %FPCTARGETOS%};
   OSTarget: String = {$I %FPCTARGETOS%};
   CPUTarget: String = {$I %FPCTARGETCPU%};
   CPUTarget: String = {$I %FPCTARGETCPU%};
+  FPCVersion: String = {$I %FPCVERSION%};
+  FPCDate: String = {$I %FPCDATE%};
 
 
 var
 var
   Backend : String;
   Backend : String;
@@ -268,6 +270,7 @@ begin
   gettext.TranslateResourceStrings('intl/fpdoc.%s.mo');
   gettext.TranslateResourceStrings('intl/fpdoc.%s.mo');
 {$ENDIF}
 {$ENDIF}
   WriteLn(STitle);
   WriteLn(STitle);
+  WriteLn(Format(SVersion, [FPCVersion, FPCDate]));
   WriteLn(SCopyright);
   WriteLn(SCopyright);
   WriteLn;
   WriteLn;
   InitOptions;
   InitOptions;

+ 4 - 0
utils/fpdoc/makeskel.pp

@@ -23,6 +23,7 @@ uses
 
 
 resourcestring
 resourcestring
   STitle = 'MakeSkel - FPDoc skeleton XML description file generator';
   STitle = 'MakeSkel - FPDoc skeleton XML description file generator';
+  SVersion = 'Version %s [%s]';
   SCopyright = '(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [email protected]';
   SCopyright = '(c) 2000 - 2003 Areca Systems GmbH / Sebastian Guenther, [email protected]';
   SCmdLineHelp = 'See documentation for usage.';
   SCmdLineHelp = 'See documentation for usage.';
   SCmdLineInvalidOption = 'Ignoring unknown option "%s"';
   SCmdLineInvalidOption = 'Ignoring unknown option "%s"';
@@ -44,6 +45,8 @@ const
   CmdLineAction: TCmdLineAction = actionConvert;
   CmdLineAction: TCmdLineAction = actionConvert;
   OSTarget: String = {$I %FPCTARGETOS%};
   OSTarget: String = {$I %FPCTARGETOS%};
   CPUTarget: String = {$I %FPCTARGETCPU%};
   CPUTarget: String = {$I %FPCTARGETCPU%};
+  FPCVersion: String = {$I %FPCVERSION%};
+  FPCDate: String = {$I %FPCDATE%};
 
 
 var
 var
   EmittedList,InputFiles, DescrFiles: TStringList;
   EmittedList,InputFiles, DescrFiles: TStringList;
@@ -334,6 +337,7 @@ begin
   InitOptions;
   InitOptions;
   ParseCommandLine;
   ParseCommandLine;
   WriteLn(STitle);
   WriteLn(STitle);
+  WriteLn(Format(SVersion, [FPCVersion, FPCDate]));
   WriteLn(SCopyright);
   WriteLn(SCopyright);
   WriteLn;
   WriteLn;
   if CmdLineAction = actionHelp then
   if CmdLineAction = actionHelp then