mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-19 00:59:25 +02:00
debian packages: fixed creating fpc-cross.cfg
git-svn-id: trunk@13524 -
This commit is contained in:
parent
e5b5000d5a
commit
75b86f252e
@ -248,8 +248,8 @@ then
|
|||||||
> $DebianRulezDir/postinst
|
> $DebianRulezDir/postinst
|
||||||
cat >> $DebianRulezDir/postinst <<CFG
|
cat >> $DebianRulezDir/postinst <<CFG
|
||||||
touch /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
touch /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
sed -i -e "/^#if 2.3.1 /{:eat;s/.*//;N;/#end/d;beat}" /usr/lib/fpc/fpc-cross.cfg
|
sed -i -e "/^#if 2.3.1 /{:eat;s/.*//;N;/#end/d;beat}" /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
cat >> /usr/lib/fpc/fpc-cross.cfg << FPCCFG
|
cat >> /usr/lib/fpc/$FPCVersion/fpc-cross.cfg << FPCCFG
|
||||||
#if $FPCVersion = \\\$fpcversion
|
#if $FPCVersion = \\\$fpcversion
|
||||||
#include /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
#include /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
#end
|
#end
|
||||||
@ -261,7 +261,7 @@ CFG
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
rm -f /usr/lib/fpc/$FPCVersion/ppc$ppcbin
|
rm -f /usr/lib/fpc/$FPCVersion/ppc$ppcbin
|
||||||
# remove fpc-cross include lines
|
# remove fpc-cross include lines
|
||||||
sed -i -e "/^#if 2.3.1 /{:eat;s/.*//;N;/#end/d;beat}" /usr/lib/fpc/fpc-cross.cfg
|
sed -i -e "/^#if 2.3.1 /{:eat;s/.*//;N;/#end/d;beat}" /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
CROSS
|
CROSS
|
||||||
chmod a+rx $DebianRulezDir/prerm
|
chmod a+rx $DebianRulezDir/prerm
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user