Thomas Vachuska | 6b33126 | 2015-04-27 11:09:07 -0700 | [diff] [blame] | 1 | #!/bin/bash |
2 | #------------------------------------------------------------------------------- | ||||
3 | # Java Package Dependency scanner | ||||
4 | # | ||||
5 | # written by Thomas Vachuska | ||||
6 | # -- Doobs -- | ||||
7 | #------------------------------------------------------------------------------- | ||||
8 | |||||
9 | find "${@:-.}" -type f -name \*.java \ | ||||
10 | | grep -v -E '/lost+found/|/target/' \ | ||||
11 | | xargs grep -E "^[ \t]*import .*;.*|^[ \t]*package .*;.*" \ | ||||
12 | | tr -d '\r' > jpd.db |