1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
#!/bin/sh
set -e
if [ "$1" = remove ]; then
update-alternatives --remove assembly-linker /usr/bin/al
update-alternatives --remove c-sharp-compiler /usr/bin/mono-csc
update-alternatives --remove cil-disassembler /usr/bin/monodis
update-alternatives --remove strong-name-tool /usr/bin/sn
update-alternatives --remove resource-file-generator /usr/bin/resgen
fi
MONOARCH=$(mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//')
rm -f /usr/lib/mono/aot-cache/${MONOARCH}/mcs.exe.so
test ! -d /usr/lib/mono/aot-cache/${MONOARCH} ||
rmdir --ignore-fail-on-non-empty /usr/lib/mono/aot-cache/${MONOARCH}
test ! -d /usr/lib/mono/aot-cache ||
rmdir --ignore-fail-on-non-empty /usr/lib/mono/aot-cache
#DEBHELPER#
|