summaryrefslogtreecommitdiff
path: root/packages
diff options
context:
space:
mode:
authorjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-09-01 20:41:30 +0000
committerjoost <joost@3ad0048d-3df7-0310-abae-a5850022a9f2>2010-09-01 20:41:30 +0000
commit24edf6c9142bc9bcd3a94e52b24fdbb5fb0ce67e (patch)
tree34103e23d3f251d7de22e7b833b54034dedeb15c /packages
parentddcc8726c556af595cbf485dd7fb6b795669feee (diff)
downloadfpc-24edf6c9142bc9bcd3a94e52b24fdbb5fb0ce67e.tar.gz
* Added the ability to use sub-dirs for examples and documents
git-svn-id: http://svn.freepascal.org/svn/fpc/trunk@15937 3ad0048d-3df7-0310-abae-a5850022a9f2
Diffstat (limited to 'packages')
-rw-r--r--packages/fpmkunit/src/fpmkunit.pp12
1 files changed, 6 insertions, 6 deletions
diff --git a/packages/fpmkunit/src/fpmkunit.pp b/packages/fpmkunit/src/fpmkunit.pp
index c6e38b71b4..e9f5ea204c 100644
--- a/packages/fpmkunit/src/fpmkunit.pp
+++ b/packages/fpmkunit/src/fpmkunit.pp
@@ -494,9 +494,9 @@ Type
Function AddExample(const AFiles : String) : TSource;
Function AddExample(const AFiles : String; AInstallSourcePath : 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 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);
Property SourceItems[Index : Integer] : TSource Read GetSourceItem Write SetSourceItem;default;
end;
@@ -1897,7 +1897,7 @@ begin
end;
-procedure TSources.AddDocFiles(const AFileMask: string; Recursive: boolean);
+procedure TSources.AddDocFiles(const AFileMask: string; Recursive: boolean; AInstallSourcePath : String = '');
var
List : TStrings;
i: integer;
@@ -1905,7 +1905,7 @@ begin
List := TStringList.Create;
SearchFiles(AFileMask, Recursive, List);
for i:= 0 to Pred(List.Count) do
- AddDoc(List[i]);
+ AddDoc(List[i], AInstallSourcePath);
List.Free;
end;
@@ -1923,7 +1923,7 @@ begin
end;
-procedure TSources.AddExampleFiles(const AFileMask: string; Recursive: boolean);
+procedure TSources.AddExampleFiles(const AFileMask: string; Recursive: boolean; AInstallSourcePath : String = '');
var
List : TStrings;
i: integer;
@@ -1931,7 +1931,7 @@ begin
List := TStringList.Create;
SearchFiles(AFileMask, Recursive, List);
for i:= 0 to Pred(List.Count) do
- AddExample(List[i]);
+ AddExample(List[i], AInstallSourcePath);
List.Free;
end;