Browse Source

Improve mono installation

Hamilton Turner 11 years ago
parent
commit
062015650d
1 changed files with 5 additions and 7 deletions
  1. 5 7
      toolset/setup/linux/languages/mono.sh

+ 5 - 7
toolset/setup/linux/languages/mono.sh

@@ -1,7 +1,7 @@
 #!/bin/bash
 
 
-RETCODE=$(fw_exists mono-3.2.8.installed)
+RETCODE=$(fw_exists mono.installed)
 [ ! "$RETCODE" == 0 ] || { \
   echo "Installing RootCAs from Mozilla..."; 
   mozroots --import --sync;
@@ -9,16 +9,14 @@ RETCODE=$(fw_exists mono-3.2.8.installed)
 
 fw_get http://download.mono-project.com/sources/mono/mono-3.2.8.tar.bz2 -O mono-3.2.8.tar.bz2
 fw_untar mono-3.2.8.tar.bz2
+
 cd mono-3.2.8 
-./configure --disable-nls --prefix=`pwd`/mono-3.2.8-install
+./configure --disable-nls --prefix=$IROOT/mono-3.2.8-install
 make get-monolite-latest
 make -j4 EXTERNAL_MCS=${PWD}/mcs/class/lib/monolite/basic.exe
-sudo make install
-
-ls -laR .
+make install
 
-sudo apt-get -y install mono-devel
 echo "Installing RootCAs from Mozilla..."; 
 mozroots --import --sync;
 
-touch mono-3.2.8.installed
+touch $IROOT/mono.installed