Created
March 29, 2013 21:26
-
-
Save jdonaldson/5273774 to your computer and use it in GitHub Desktop.
Haxe update script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# installhaxe.sh | |
# | |
# Build the haxe compiler | |
# ===================== | |
# - download 'install.ml' and execute it (compiles the haxe compiler) | |
# - copy the executables and modify the evironment variables | |
cd tmp | |
if [ ! -d haxesrc ] | |
then mkdir haxesrc | |
fi | |
cd haxesrc | |
if [ -f install.ml ] | |
then rm install.ml | |
fi | |
wget http://haxe.googlecode.com/svn/trunk/doc/install.ml | |
ocaml install.ml | |
# reset previous installations | |
sudo rm -rf $HOME/bin/haxe_nightly/haxe | |
# install haxe in /usr/lib | |
sudo mkdir $HOME/bin/haxe_nightly/haxe | |
sudo cp bin/* $HOME/bin/haxe_nightly/haxe | |
sudo cp -r haxe/std $HOME/bin/haxe_nightly/haxe | |
# setup environment variables for haxe | |
sudo grep "HAXE_LIBRARY_PATH" ~/.bash_profile || echo "export HAXE_LIBRARY_PATH=$HOME/bin/haxe_nightly/haxe:." >> ~/.bash_profile | |
source ~/.bash_profile | |
cd - |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment