Created
March 6, 2012 17:43
-
-
Save jbn/1987693 to your computer and use it in GitHub Desktop.
Setup MASON in an SBT project
This file contains hidden or 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/bash -v | |
# MASON (http://cs.gmu.edu/~eclab/projects/mason/) has no MAVEN repository, and | |
# is built with Makefiles. Sinec I build MASON simulations in Scala with SBT, | |
# this is inconvienent. This script downloads the latest version of MASON and | |
# its listed dependencies, and places them in the lib directory. I've never been | |
# very clear on licensing issues, so I hope I'm not in violation (and I hope | |
# I'm not stepping on anyone's toes.) If I am, please let me know. | |
# | |
# The most convienent way to run is to CD into your scripts base directory and | |
# issue the command: | |
# | |
# > bash -v < <(curl -s https://raw.github.com/gist/1987693/34571509c912eeb6880edf6d91906471f7b29df9/setup_mason.sh) | |
# | |
# -- John B Nelson <[email protected]> | |
# Make and move into the lib directory. | |
mkdir lib; cd $_ | |
# Get MASON jar files; extract them to the lib directory. | |
wget http://cs.gmu.edu/~eclab/projects/mason/mason.tar.gz | |
tar -xzf mason.tar.gz | |
mv mason/jar/*.jar ./ | |
rm -rf mason mason.tar.gz | |
# Get the jar files for MASON dependencies; extract them to the lib directory. | |
wget http://cs.gmu.edu/~eclab/projects/mason/libraries.tar.gz | |
tar -xzf libraries.tar.gz | |
mv libraries/*.jar ./ | |
rm -rf libraries libraries.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment