linux-packaging-mono/debian/postinst-monoaot
Jo Shields 2ff7594f46 Fix AOT-on-install on ARM
Former-commit-id: 3176827268fb94cd12395aef6d8b3eefb1f2cb80
2015-02-07 13:54:03 -05:00

7 lines
296 B
Plaintext

if [ "$1" = "configure" ]
then
MONOARCH=`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`
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