blob: fbe77522918f651ab66c4f9722d34198f69639ff [file] [log] [blame]
Jonathan Hart8a030cd2014-10-07 10:52:29 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# ----------------------------------------------------------------------------
Thomas Vachuska87994d02015-04-23 11:55:24 -07003# Echoes project-level directory if a source file within is newer than the
tom1a17eb42014-10-08 20:21:23 -07004# target directory.
Pavlin Radoslavov91413792014-10-15 11:00:32 -07005# ----------------------------------------------------------------------------
tom1cd74ae2014-10-01 14:58:32 -07006
Thomas Vachuska87994d02015-04-23 11:55:24 -07007[ ${1/*\//} = "package-info.java" ] && exit 0
tom1cd74ae2014-10-01 14:58:32 -07008
Thomas Vachuska87994d02015-04-23 11:55:24 -07009project=${1/src*/}
10[ ${project}target -nt $1 ] || echo ${project}