aboutsummaryrefslogtreecommitdiff
path: root/sourcesFromSbt.sh
diff options
context:
space:
mode:
authorJim Lawson2016-04-07 12:17:47 -0700
committerjackkoenig2016-04-09 19:07:47 -0700
commit084e7ca9f9ecb76b91e143931d08195d45672ab7 (patch)
tree15e5c81fb9c81fc5e0508718da54b2f180b46e45 /sourcesFromSbt.sh
parentf93dc6831e282338bcda1db04dbf272a36b4a895 (diff)
Update Makefile to use sbt to determine sources; make build-scala the default build - #97
Diffstat (limited to 'sourcesFromSbt.sh')
-rwxr-xr-xsourcesFromSbt.sh10
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 }'