mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 03:09:32 +02:00
deb: uninstall fpc even if some files are missing
git-svn-id: trunk@56616 -
This commit is contained in:
parent
0e64db4bdf
commit
f452cfaed2
@ -331,7 +331,9 @@ CFG
|
|||||||
set -e
|
set -e
|
||||||
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/$FPCVersion/fpc-cross.cfg
|
if [ -f /usr/lib/fpc/$FPCVersion/fpc-cross.cfg ]; then
|
||||||
|
sed -i -e "/^#if 2.3.1 /{:eat;s/.*//;N;/#end/d;beat}" /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
|
fi
|
||||||
CROSS
|
CROSS
|
||||||
chmod a+rx $DebianRulezDir/prerm
|
chmod a+rx $DebianRulezDir/prerm
|
||||||
else
|
else
|
||||||
@ -348,7 +350,9 @@ CROSS
|
|||||||
#! /bin/sh
|
#! /bin/sh
|
||||||
set -e
|
set -e
|
||||||
rm -f /usr/lib/fpc/$FPCVersion/$PPPRE$ppcbin
|
rm -f /usr/lib/fpc/$FPCVersion/$PPPRE$ppcbin
|
||||||
sed -i -e "/#include \/usr\/lib\/fpc\/$FPCVersion\/fpc${TARGET_SUFFIX}.cfg/d" /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
if [ -f /usr/lib/fpc/$FPCVersion/fpc-cross.cfg ]; then
|
||||||
|
sed -i -e "/#include \/usr\/lib\/fpc\/$FPCVersion\/fpc${TARGET_SUFFIX}.cfg/d" /usr/lib/fpc/$FPCVersion/fpc-cross.cfg
|
||||||
|
fi
|
||||||
CROSS
|
CROSS
|
||||||
chmod a+rx $DebianRulezDir/prerm
|
chmod a+rx $DebianRulezDir/prerm
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user