Browse Source

Rename new option -sap for skip all programs to avoid collision with already existing -sp=PATH option to set search path

Pierre Muller 1 month ago
parent
commit
b2b36b4d30
1 changed files with 11 additions and 11 deletions
  1. 11 11
      packages/fpmkunit/src/fpmkunit.pp

+ 11 - 11
packages/fpmkunit/src/fpmkunit.pp

@@ -1186,7 +1186,7 @@ Type
     FExamplesInstallDir : String;
     FExamplesInstallDir : String;
     FSingleFPDocFile: Boolean;
     FSingleFPDocFile: Boolean;
     FSearchPath: TStrings;
     FSearchPath: TStrings;
-    FSkipPrograms: boolean;
+    FSkipAllPrograms: boolean;
     FSkipCrossPrograms: boolean;
     FSkipCrossPrograms: boolean;
     FThreadsAmount: integer;
     FThreadsAmount: integer;
     FRemoveTree: String;
     FRemoveTree: String;
@@ -1320,7 +1320,7 @@ Type
     // Installation optioms
     // Installation optioms
     Property InstallExamples: Boolean read FInstallExamples write FInstallExamples;
     Property InstallExamples: Boolean read FInstallExamples write FInstallExamples;
     Property SkipCrossPrograms: boolean read FSkipCrossPrograms write FSkipCrossPrograms;
     Property SkipCrossPrograms: boolean read FSkipCrossPrograms write FSkipCrossPrograms;
-    Property SkipPrograms: boolean read FSkipPrograms write FSkipPrograms;
+    Property SkipAllPrograms: boolean read FSkipAllPrograms write FSkipAllPrograms;
   end;
   end;
 
 
   { TBasicDefaults }
   { TBasicDefaults }
@@ -2051,7 +2051,7 @@ ResourceString
   SHelpInteractive    = 'Allow to interact with child processes';
   SHelpInteractive    = 'Allow to interact with child processes';
   SHelpInstExamples   = 'Install the example-sources.';
   SHelpInstExamples   = 'Install the example-sources.';
   SHelpSkipCrossProgs = 'Skip programs when cross-compiling/installing';
   SHelpSkipCrossProgs = 'Skip programs when cross-compiling/installing';
-  SHelpSkipProgs      = 'Skip programs even if native-compiling/installing';
+  SHelpSkipAllProgs   = 'Skip all programs even if native-compiling/installing';
   SHelpIgnoreInvOpt   = 'Ignore further invalid options.';
   SHelpIgnoreInvOpt   = 'Ignore further invalid options.';
   sHelpFpdocOutputDir = 'Use indicated directory as fpdoc output folder.';
   sHelpFpdocOutputDir = 'Use indicated directory as fpdoc output folder.';
   sHelpSingleFpdocFile = 'Create a single fpdoc project file for all projects';
   sHelpSingleFpdocFile = 'Create a single fpdoc project file for all projects';
@@ -2101,7 +2101,7 @@ Const
   KeyExamplesInstallDir = 'ExamplesInstallDir';
   KeyExamplesInstallDir = 'ExamplesInstallDir';
   KeyInstallExamples    = 'InstallExamples';
   KeyInstallExamples    = 'InstallExamples';
   KeySkipCrossPrograms  = 'SkipCrossPrograms';
   KeySkipCrossPrograms  = 'SkipCrossPrograms';
-  KeySkipPrograms       = 'SkipPrograms';
+  KeySkipAllPrograms    = 'SkipAllPrograms';
   // Keys for unit config
   // Keys for unit config
   KeyName     = 'Name';
   KeyName     = 'Name';
   KeyVersion  = 'Version';
   KeyVersion  = 'Version';
@@ -5859,8 +5859,8 @@ begin
           Values[KeyInstallExamples]:='Y';
           Values[KeyInstallExamples]:='Y';
       if FSkipCrossPrograms then
       if FSkipCrossPrograms then
         Values[KeySkipCrossPrograms]:='Y';
         Values[KeySkipCrossPrograms]:='Y';
-      if FSkipPrograms then
-        Values[KeySkipPrograms]:='Y';
+      if FSkipAllPrograms then
+        Values[KeySkipAllPrograms]:='Y';
       end;
       end;
     L.SaveToStream(S);
     L.SaveToStream(S);
   Finally
   Finally
@@ -5920,7 +5920,7 @@ begin
       FExamplesInstallDir:=Values[KeyExamplesInstallDir];
       FExamplesInstallDir:=Values[KeyExamplesInstallDir];
       FInstallExamples:=(Upcase(Values[KeyInstallExamples])='Y');
       FInstallExamples:=(Upcase(Values[KeyInstallExamples])='Y');
       FSkipCrossPrograms:=(Upcase(Values[KeySkipCrossPrograms])='Y');
       FSkipCrossPrograms:=(Upcase(Values[KeySkipCrossPrograms])='Y');
-      FSkipPrograms:=(Upcase(Values[KeySkipPrograms])='Y');
+      FSkipAllPrograms:=(Upcase(Values[KeySkipAllPrograms])='Y');
       FNoFPCCfg:=(Upcase(Values[KeyNoFPCCfg])='Y');
       FNoFPCCfg:=(Upcase(Values[KeyNoFPCCfg])='Y');
       FUseEnvironment:=(Upcase(Values[KeyUseEnv])='Y');
       FUseEnvironment:=(Upcase(Values[KeyUseEnv])='Y');
 
 
@@ -6377,8 +6377,8 @@ begin
       DefaultsFileName:=OptionArg(I)
       DefaultsFileName:=OptionArg(I)
     else if CheckOption(I,'ie','installexamples') then
     else if CheckOption(I,'ie','installexamples') then
       Defaults.InstallExamples:=true
       Defaults.InstallExamples:=true
-    else if CheckOption(I,'sp','skipprograms') then
-      Defaults.SkipPrograms:=true
+    else if CheckOption(I,'sap','skipallprograms') then
+      Defaults.SkipAllPrograms:=true
     else if CheckOption(I,'scp','skipcrossprograms') then
     else if CheckOption(I,'scp','skipcrossprograms') then
       Defaults.SkipCrossPrograms:=true
       Defaults.SkipCrossPrograms:=true
     else if CheckOption(I,'bu','buildunit') then
     else if CheckOption(I,'bu','buildunit') then
@@ -6466,7 +6466,7 @@ begin
 {$endif}
 {$endif}
   LogOption('ie','installexamples',SHelpInstExamples);
   LogOption('ie','installexamples',SHelpInstExamples);
   LogOption('bu','buildunit',SHelpUseBuildUnit);
   LogOption('bu','buildunit',SHelpUseBuildUnit);
-  LogOption('sp','skipprograms',SHelpSkipProgs);
+  LogOption('sap','skipallprograms',SHelpSkipAllProgs);
   LogOption('scp','skipcrossprograms',SHelpSkipCrossProgs);
   LogOption('scp','skipcrossprograms',SHelpSkipCrossProgs);
   LogOption('io','ignoreinvalidoption',SHelpIgnoreInvOpt);
   LogOption('io','ignoreinvalidoption',SHelpIgnoreInvOpt);
   LogArgOption('C','cpu',SHelpCPU);
   LogArgOption('C','cpu',SHelpCPU);
@@ -8200,7 +8200,7 @@ function TBuildEngine.TargetOK(ATarget: TTarget; const aCompileTarget : TCompile
 
 
 begin
 begin
   if (ATarget.TargetType in ProgramTargets) and
   if (ATarget.TargetType in ProgramTargets) and
-     (Defaults.SkipPrograms or
+     (Defaults.SkipAllPrograms or
       (Defaults.SkipCrossPrograms and
       (Defaults.SkipCrossPrograms and
        IsDifferentFromBuild(aCOmpileTarget.CPU, aCOmpileTarget.OS))) then
        IsDifferentFromBuild(aCOmpileTarget.CPU, aCOmpileTarget.OS))) then
     result := False
     result := False