Jonathan Hart | 8a030cd | 2014-10-07 10:52:29 -0700 | [diff] [blame] | 1 | #!/bin/bash |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 2 | # ---------------------------------------------------------------------------- |
Thomas Vachuska | 87994d0 | 2015-04-23 11:55:24 -0700 | [diff] [blame] | 3 | # Echoes project-level directory if a source file within is newer than the |
tom | 1a17eb4 | 2014-10-08 20:21:23 -0700 | [diff] [blame] | 4 | # target directory. |
Pavlin Radoslavov | 9141379 | 2014-10-15 11:00:32 -0700 | [diff] [blame] | 5 | # ---------------------------------------------------------------------------- |
tom | 1cd74ae | 2014-10-01 14:58:32 -0700 | [diff] [blame] | 6 | |
Thomas Vachuska | 87994d0 | 2015-04-23 11:55:24 -0700 | [diff] [blame] | 7 | [ ${1/*\//} = "package-info.java" ] && exit 0 |
tom | 1cd74ae | 2014-10-01 14:58:32 -0700 | [diff] [blame] | 8 | |
Thomas Vachuska | 87994d0 | 2015-04-23 11:55:24 -0700 | [diff] [blame] | 9 | project=${1/src*/} |
| 10 | [ ${project}target -nt $1 ] || echo ${project} |