Browse Source

* Added the ability to use sub-dirs for examples and documents

git-svn-id: trunk@15937 -
joost 15 years ago
parent
commit
442bdbec58
1 changed files with 6 additions and 6 deletions
  1. 6 6
      packages/fpmkunit/src/fpmkunit.pp

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

@@ -494,9 +494,9 @@ Type
     Function AddExample(const AFiles : String) : TSource;
     Function AddExample(const AFiles : String) : TSource;
     Function AddExample(const AFiles : String; AInstallSourcePath : String) : TSource;
     Function AddExample(const AFiles : String; AInstallSourcePath : String) : TSource;
     Function AddTest(const AFiles : String) : TSource;
     Function AddTest(const AFiles : String) : TSource;
-    procedure AddDocFiles(const AFileMask: string; Recursive: boolean = False);
+    procedure AddDocFiles(const AFileMask: string; Recursive: boolean = False; AInstallSourcePath : String = '');
     procedure AddSrcFiles(const AFileMask: string; Recursive: boolean = False);
     procedure AddSrcFiles(const AFileMask: string; Recursive: boolean = False);
-    procedure AddExampleFiles(const AFileMask: string; Recursive: boolean = False);
+    procedure AddExampleFiles(const AFileMask: string; Recursive: boolean = False; AInstallSourcePath : String = '');
     procedure AddTestFiles(const AFileMask: string; Recursive: boolean = False);
     procedure AddTestFiles(const AFileMask: string; Recursive: boolean = False);
     Property SourceItems[Index : Integer] : TSource Read GetSourceItem Write SetSourceItem;default;
     Property SourceItems[Index : Integer] : TSource Read GetSourceItem Write SetSourceItem;default;
   end;
   end;
@@ -1897,7 +1897,7 @@ begin
 end;
 end;
 
 
 
 
-procedure TSources.AddDocFiles(const AFileMask: string; Recursive: boolean);
+procedure TSources.AddDocFiles(const AFileMask: string; Recursive: boolean; AInstallSourcePath : String = '');
 var
 var
   List : TStrings;
   List : TStrings;
   i: integer;
   i: integer;
@@ -1905,7 +1905,7 @@ begin
   List := TStringList.Create;
   List := TStringList.Create;
   SearchFiles(AFileMask, Recursive, List);
   SearchFiles(AFileMask, Recursive, List);
   for i:= 0 to Pred(List.Count) do
   for i:= 0 to Pred(List.Count) do
-    AddDoc(List[i]);
+    AddDoc(List[i], AInstallSourcePath);
   List.Free;
   List.Free;
 end;
 end;
 
 
@@ -1923,7 +1923,7 @@ begin
 end;
 end;
 
 
 
 
-procedure TSources.AddExampleFiles(const AFileMask: string; Recursive: boolean);
+procedure TSources.AddExampleFiles(const AFileMask: string; Recursive: boolean; AInstallSourcePath : String = '');
 var
 var
   List : TStrings;
   List : TStrings;
   i: integer;
   i: integer;
@@ -1931,7 +1931,7 @@ begin
   List := TStringList.Create;
   List := TStringList.Create;
   SearchFiles(AFileMask, Recursive, List);
   SearchFiles(AFileMask, Recursive, List);
   for i:= 0 to Pred(List.Count) do
   for i:= 0 to Pred(List.Count) do
-    AddExample(List[i]);
+    AddExample(List[i], AInstallSourcePath);
   List.Free;
   List.Free;
 end;
 end;