Created
November 22, 2011 22:12
-
-
Save ppurang/1387201 to your computer and use it in GitHub Desktop.
scala script including a proper classpath
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 | |
L=`dirname $0`/../lib | |
cp=`echo $L/*.jar|sed 's/ /:/g'` | |
exec scala -classpath $cp -savecompiled $0 $@ | |
!# | |
# shebang magic from http://www.eamonn.org/blog/archives/425 | |
println("hello world") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment