浏览代码

* Mover {CompilerVersion} from the fppkg.cfg template to samplecfg, because
on Windows it is possible to install fpc in a location without the
compilerversion in the path.

git-svn-id: trunk@41184 -

joost 6 年之前
父节点
当前提交
6ffe906794
共有 3 个文件被更改,包括 4 次插入4 次删除
  1. 1 1
      compiler/utils/samplecfg
  2. 1 1
      utils/fpcmkcfg/fppkg.cfg
  3. 2 2
      utils/fpcmkcfg/fppkg.inc

+ 1 - 1
compiler/utils/samplecfg

@@ -98,7 +98,7 @@ fi
 
 # Write fppkg.cfg
 echo Writing sample configuration file to $fppkgfile
-${FPCMKCFGBIN} -p -3 -d "GlobalPrefix=$FPCGLOBALPREFIX" -d "GlobalPath=$FPCGLOBALPATH" $compilerconfigdir -o $fppkgfile
+${FPCMKCFGBIN} -p -3 -d "GlobalPrefix=$FPCGLOBALPREFIX" -d "GlobalPath=$FPCGLOBALPATH/{CompilerVersion}/" $compilerconfigdir -o $fppkgfile
 
 # Write default
 echo Writing sample configuration file to $defaultfile

+ 1 - 1
utils/fpcmkcfg/fppkg.cfg

@@ -14,7 +14,7 @@ InstallRepository=user
 [Repository]
 Name=fpc
 Description=Packages which are installed along with the Free Pascal Compiler
-Path=%GlobalPath%/{CompilerVersion}/
+Path=%GlobalPath%
 Prefix=%GlobalPrefix%
 
 [IncludeFiles]

+ 2 - 2
utils/fpcmkcfg/fppkg.inc

@@ -20,8 +20,8 @@ const fppkg : array[0..2,1..240] of char=(
   'Name=fpc'#010+
   'Description=Packages which are installed along with the Free Pascal Co'+
   'mpiler'#010+
-  'Path=%GlobalPath%/{CompilerVersio','n}/'#010+
-  'Prefix=%GlobalPrefix%'#010+
+  'Path=%GlobalPath%'#010+
+  'Prefix=%GlobalP','refix%'#010+
   #010+
   '[IncludeFiles]'#010+
   'FileMask=%CompilerConfigDir%/conf.d/*.conf'#010+