Fix AOT-on-install on ARM

Former-commit-id: 3176827268fb94cd12395aef6d8b3eefb1f2cb80
This commit is contained in:
Jo Shields 2015-02-07 13:54:03 -05:00
parent 372bfe48fb
commit 2ff7594f46
2 changed files with 2 additions and 2 deletions

View File

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

View File

@ -1 +1 @@
rm -f /usr/lib/mono/aot-cache/`mono --version | grep Architecture | sed 's/.*: //'`/`basename #FILE#` rm -f /usr/lib/mono/aot-cache/`mono --version | grep Architecture | sed 's/.*: //' | sed 's/el,.*//'`/`basename #FILE#`