diff options
| author | Jim Lawson | 2016-04-07 12:17:47 -0700 |
|---|---|---|
| committer | jackkoenig | 2016-04-09 19:07:47 -0700 |
| commit | 084e7ca9f9ecb76b91e143931d08195d45672ab7 (patch) | |
| tree | 15e5c81fb9c81fc5e0508718da54b2f180b46e45 /sourcesFromSbt.sh | |
| parent | f93dc6831e282338bcda1db04dbf272a36b4a895 (diff) | |
Update Makefile to use sbt to determine sources; make build-scala the default build - #97
Diffstat (limited to 'sourcesFromSbt.sh')
| -rwxr-xr-x | sourcesFromSbt.sh | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/sourcesFromSbt.sh b/sourcesFromSbt.sh new file mode 100755 index 00000000..e2b6a170 --- /dev/null +++ b/sourcesFromSbt.sh @@ -0,0 +1,10 @@ +#!/bin/sh +# Parse the output of: +# sbt "show compile:sources compile:resources". +# +# Set the field delimiter to any of '(', ',', or ')' +# and split lines beginning with: +# [info] ArrayBuffer( +# [info] List( +# throwing away the initial 'field' up to and including the '('. +gawk -F '\\(|,|\\)' '/\[info\]\s+((ArrayBuffer)|(List))\(/ { $1 = ""; print $0 }' |
