Procházet zdrojové kódy

* Fixed problem with samplecfg that did not write the fppkg-configuration files when fp was not installed

git-svn-id: trunk@31943 -
joost před 9 roky
rodič
revize
8e2a44db88
1 změnil soubory, kde provedl 8 přidání a 10 odebrání
  1. 8 10
      compiler/utils/samplecfg

+ 8 - 10
compiler/utils/samplecfg

@@ -76,17 +76,15 @@ FPCGLOBALPREFIX=`dirname "$1"`/../../
 echo Writing sample configuration file to $fpccfgfile
 echo Writing sample configuration file to $fpccfgfile
 ${FPCMKCFGBIN} -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpccfgfile
 ${FPCMKCFGBIN} -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpccfgfile
 
 
-if ! [ -f "$FPBIN" ] ; then
-  exit
-fi
-
-# Write fp.cfg
-echo Writing sample configuration file to $fpcfgfile
-${FPCMKCFGBIN} -p -1 -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpcfgfile
+if [ -f "$FPBIN" ] ; then
+  # Write fp.cfg
+  echo Writing sample configuration file to $fpcfgfile
+  ${FPCMKCFGBIN} -p -1 -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpcfgfile
 
 
-# Write fp.ini
-echo Writing sample configuration file to $fpinifile
-${FPCMKCFGBIN} -p -2 -o $fpinifile
+  # Write fp.ini
+  echo Writing sample configuration file to $fpinifile
+  ${FPCMKCFGBIN} -p -2 -o $fpinifile
+fi
 
 
 # Do not write fppkg configuration when fppkg is not available
 # Do not write fppkg configuration when fppkg is not available
 if ! [ -f "$FPPKGBIN" ] ; then
 if ! [ -f "$FPPKGBIN" ] ; then