Skip to content

Instantly share code, notes, and snippets.

@jbn
Created March 6, 2012 17:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jbn/1987693 to your computer and use it in GitHub Desktop.
Save jbn/1987693 to your computer and use it in GitHub Desktop.
Setup MASON in an SBT project
#!/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 <jbn@pathdependent.com>
# 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