Skip to content

Instantly share code, notes, and snippets.

@ppurang
Created November 22, 2011 22:12
Show Gist options
  • Save ppurang/1387201 to your computer and use it in GitHub Desktop.
Save ppurang/1387201 to your computer and use it in GitHub Desktop.
scala script including a proper classpath
#!/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