fpc deb: simplified

git-svn-id: trunk@50631 -
This commit is contained in:
mattias 2015-12-05 11:27:22 +00:00
parent 0db26fe87a
commit 30458feccd

View File

@ -222,10 +222,11 @@ if [ "$PackageName" = "fpc" ]; then
if test -z "$BINUTILSPREFIX"
then
# need up to date samplecfg that chains cross compiler additions
grep 'fpc-cross.cfg' $DebianInstallDir/lib/fpc/$FPCVersion/samplecfg &>/dev/null || \
SampleCfg=$DebianInstallDir/lib/fpc/$FPCVersion/samplecfg
grep 'fpc-cross.cfg' "$SampleCfg" &>/dev/null || \
sed -i -e "/^FPCPATH=/aFPCPARENT=\"\`dirname \"\$1\"\`\"
;/^#ENDIF NEEDCROSSBINUTILS/i#include \$FPCPARENT/fpc-cross.cfg" $DebianInstallDir/lib/fpc/$FPCVersion/samplecfg
else cat > $DebianInstallDir/lib/fpc/$FPCVersion/fpc${TARGET_SUFFIX}.cfg <<CROSS
;/^#ENDIF NEEDCROSSBINUTILS/i#include \$FPCPARENT/fpc-cross.cfg" "$SampleCfg"
else cat > $DebianInstallDir/lib/fpc/$FPCVersion/fpc${TARGET_SUFFIX}.cfg <<CROSS
# Detect $TARGET compiles
#IF \$fpc-target = $TARGET
-XP$BINUTILSPREFIX