Răsfoiți Sursa

* Write a warning to stderr that this utility is deprecated

git-svn-id: trunk@15213 -
joost 15 ani în urmă
părinte
comite
f1e4de764a
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      compiler/utils/fpcsubst.pp

+ 2 - 0
compiler/utils/fpcsubst.pp

@@ -28,6 +28,7 @@ Resourcestring
   SWarnIgnoringPair = 'Warning: ignoring wrong name/value pair: ';
   SStats = 'Replaced %d placeholders in %d lines.';
   SSubstInLine = 'Replaced %s placeholders in line %d.';
+  SWarningDeprecated = 'Warning: This utility is deprecated and will be removed from fpc in the future. Please use fpcmkcfg instead.';
 
 
 Var
@@ -231,6 +232,7 @@ begin
 end;
 
 begin
+  WriteLn(StdErr,SWarningDeprecated);
   Init;
   Try
     ProcessCommandLine;