浏览代码

* Do not use a prefix on non-unices within archives (zipinstall)
* Resolved more problems with case-sensitive TStrings on some targets (go32v2)

git-svn-id: trunk@28933 -

joost 10 年之前
父节点
当前提交
cda66fd328
共有 1 个文件被更改,包括 7 次插入4 次删除
  1. 7 4
      packages/fpmkunit/src/fpmkunit.pp

+ 7 - 4
packages/fpmkunit/src/fpmkunit.pp

@@ -2257,7 +2257,7 @@ begin
         end;
     end;
   if AIsDir and (Result <> '') then
-    Result := IncludeTrailingPathDelimiter(Result);;
+    Result := IncludeTrailingPathDelimiter(Result);
 end;
 
 function IsRelativePath(const APath: String): boolean;
@@ -3968,7 +3968,7 @@ begin
   FNoFPCCfg:=False;
   FCPU:=cpuNone;
   FOS:=osNone;
-  FUnitInstallDir:='$(BaseInstallDir)units/$(target)/$(packagename)';
+  FUnitInstallDir:='$(baseinstalldir)units/$(target)/$(packagename)';
   FBuildMode:=bmOneByOne;
   FThreadsAmount:=-1;
 end;
@@ -4237,7 +4237,7 @@ begin
   FPackageVariants := TFPList.Create;
   GlobalDictionary:=DictionaryClass.Create(Nil);
   AnalyzeOptions;
-  GlobalDictionary.AddVariable('BaseInstallDir',Defaults.BaseInstallDir);
+  GlobalDictionary.AddVariable('baseinstalldir',Defaults.BaseInstallDir);
   GlobalDictionary.AddVariable('bininstalldir',Defaults.BinInstallDir);
   GlobalDictionary.AddVariable('Target',Defaults.Target);
   GlobalDictionary.AddVariable('BuildString',Defaults.BuildString);
@@ -7103,7 +7103,10 @@ begin
   If Assigned(BeforeInstall) then
     BeforeInstall(Self);
 
-  Defaults.IntSetBaseInstallDir('lib/fpc/' + Defaults.FCompilerVersion+ '/');
+  if Defaults.UnixPaths then
+    Defaults.IntSetBaseInstallDir('lib/fpc/' + Defaults.FCompilerVersion+ '/')
+  else
+    Defaults.IntSetBaseInstallDir('');
 
   try
     For I:=0 to Packages.Count-1 do