mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-23 07:59:44 +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
|
||||
rm -f /usr/lib/fpc/$FPCVersion/ppc$ppcbin
|
||||
# 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
|
||||
chmod a+rx $DebianRulezDir/prerm
|
||||
else
|
||||
@ -348,7 +350,9 @@ CROSS
|
||||
#! /bin/sh
|
||||
set -e
|
||||
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
|
||||
chmod a+rx $DebianRulezDir/prerm
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user