#!/bin/bash

PREFIX=$@
if [ -z $PREFIX ]; then
  PREFIX="/usr/local"
fi

# Ensure you have write permissions to PREFIX
mkdir -p $PREFIX
chown -R `whoami` $PREFIX

PATH=$PREFIX/bin:$PATH
wget https://github.com/mono/mono/archive/mono-4.8.0.478.tar.gz
tar --checkpoint -zxf mono-4.8.0.478.tar.gz
mv mono* mono
cd mono
./autogen.sh --prefix=$PREFIX
make
make install

#!/bin/bash

PREFIX=$@
if [ -z $PREFIX ]; then
  PREFIX="/usr/local"
fi

# Ensure you have write permissions to PREFIX
mkdir -p $PREFIX
chown -R `whoami` $PREFIX

PATH=$PREFIX/bin:$PATH
wget https://github.com/mono/mono/archive/mono-4.8.0.478.tar.gz
tar -zxf mono-4.8.0.478.tar.gz
rm mono-4.8.0.478.tar.gz
cd mono-mono-4.8.0.478
./autogen.sh --prefix=$PREFIX
make
make install

Fix for incorrect folder renaming command
Fix for incorrect folder renaming command
