linux-packaging-mono/debian/postinst-monoaot
2015-01-13 17:54:01 +00:00

7 lines
270 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
fi