Skip to content

Instantly share code, notes, and snippets.

@stpettersens
Created September 2, 2010 15:34
Show Gist options
  • Save stpettersens/562441 to your computer and use it in GitHub Desktop.
Save stpettersens/562441 to your computer and use it in GitHub Desktop.
#!/bin/bash
# Build Gaudi
sep=";" # Initially use Windows, ";"
# For Linux, Unix/xBSD - use ":"
if [[ `uname` =~ .*n.*x|.+BSD ]]; then
sep=":"
fi
pkg="org/stpettersens/gaudi"
jarF="Gaudi.jar"
deps="lib/json_simple-1.1.jar"$sep"lib/commons-io-1.4.jar"
echo "Compiling..."
scalac -classpath $deps -verbose -deprecation -unchecked -d bin src/$pkg/*.scala
echo "Packaging..."
cp Manifest.mf bin
cd bin
jar cfm $jarF Manifest.mf *
rm Manifest.mf
cd ..
echo "Done."
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment