Refresh dh_monoaot to work from a manifest file, debian/installmonoaot, into $PREFIX/mono/lib/aot-cache/$ARCH

Former-commit-id: ededb551d3f504a906f74f62b979a0fabe70bf7e
This commit is contained in:
Jo Shields
2015-01-13 16:18:26 +00:00
parent a9e7cd2c07
commit bb95674019
6 changed files with 40 additions and 26 deletions

View File

@@ -1,4 +1,6 @@
if [ "$1" = "configure" ]
then
/usr/bin/mono --aot -O=all,shared #FILE# > /dev/null 2>&1
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