aboutsummaryrefslogtreecommitdiff
path: root/sourcesFromSbt.sh
blob: e2b6a1704083f5de14974f6a9bda3b5211afe1af (plain)
1
2
3
4
5
6
7
8
9
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 }'