linux-packaging-mono/debian/postinst-monoaot
Jo Shields 7a1ee9d53d Add a message to say what AOT is up to
(cherry picked from commit d743d587d1f5a8c39fe5ce0dc005d439c09d56f0)


Former-commit-id: f1fd8049754926932349f92cbca49760ac247b42
2018-06-01 23:23:13 -04:00

8 lines
341 B
Plaintext

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