utils: fix few errors with sharepath in samplecfg

git-svn-id: trunk@26424 -
This commit is contained in:
paul 2014-01-11 16:15:02 +00:00
parent 4df2637e99
commit 19d71655eb

View File

@ -25,7 +25,7 @@ FPCBIN=`dirname "$1"`/../../bin/fpc
FPBIN=`dirname "$1"`/../../bin/fp
FPPKGBIN=`dirname "$1"`/../../bin/fppkg
FPCMKCFGBIN=`dirname "$1"`/../../bin/fpcmkcfg
SHAREPATH=`dirname "$1"`/../../../share
SHAREPATH=`dirname "$1"`/../../share/fpc/\$fpcversion
# Look for one in the PATH, if no new one was installed.
if [ ! -f $FPCMKCFGBIN ]; then
FPCMKCFGBIN=fpcmkcfg
@ -74,7 +74,7 @@ FPCGLOBALPREFIX=`dirname "$1"`/../../
# Write (.)fpc.cfg
echo Writing sample configuration file to $fpccfgfile
${FPCMKCFGBIN} -d "basepath=$FPCPATH sharepath=$SHAREPATH" -o $fpccfgfile
${FPCMKCFGBIN} -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpccfgfile
if ! [ -f "$FPBIN" ] ; then
exit
@ -82,7 +82,7 @@ fi
# Write fp.cfg
echo Writing sample configuration file to $fpcfgfile
${FPCMKCFGBIN} -p -1 -d "basepath=$FPCPATH sharepath=$SHAREPATH" -o $fpcfgfile
${FPCMKCFGBIN} -p -1 -d "basepath=$FPCPATH" -d "sharepath=$SHAREPATH" -o $fpcfgfile
# Write fp.ini
echo Writing sample configuration file to $fpinifile