-
-
Save thomasuster/707999d8dad553826557 to your computer and use it in GitHub Desktop.
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 | |
# Download Neko | |
curl -L http://nekovm.org/_media/neko-2.0.0.tar.gz > neko-2.0.0.tar.gz | |
# Extract and copy files to neko | |
tar xvzf neko-2.0.0.tar.gz | |
sudo mkdir -p neko | |
sudo cp -r neko-2.0.0/* neko | |
# Add symlinks | |
sudo rm -rf /usr/bin/neko | |
sudo rm -rf /usr/bin/nekoc | |
sudo rm -rf /usr/bin/nekotools | |
sudo rm -rf /usr/lib/libneko.dylib | |
sudo ln -s neko/neko /usr/bin/neko | |
sudo ln -s neko/nekoc /usr/bin/nekoc | |
sudo ln -s neko/nekotools /usr/bin/nekotools | |
sudo ln -s neko/libneko.dylib /usr/lib/libneko.dylib | |
# Cleanup | |
rm -r neko-2.0.0 | |
rm neko-2.0.0.tar.gz | |
# Rebuild haxelib | |
#cd /usr/lib/haxe/std/tools/haxelib | |
#sudo haxe haxelib.hxml | |
#sudo cp ./haxelib /usr/lib/haxe/haxelib |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment