Files
linux-packaging-mono/debian/postinst-monoaot
Jo Shields 372bfe48fb Add ||true to AOT postinst, to prevent install failure on architectures like s390x without AOT.
Former-commit-id: 8882ab86512e304a6ce367a860f46660f003ec15
2015-01-21 16:23:37 +00:00

7 lines
278 B
Plaintext

if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //'`
mkdir -p /usr/lib/mono/aot-cache/${MONOARCH}/
/usr/bin/mono --aot=outfile=/usr/lib/mono/aot-cache/${MONOARCH}/`basename #FILE#.so` -O=all,shared #FILE# > /dev/null 2>&1 || true
fi