mirror of
https://github.com/opennetworkinglab/onos.git
synced 2025-10-25 06:11:05 +02:00
No functional changes. * Description header formatting * Added missing new line at the end of a file * Removed extra new lines at the end of a file
17 lines
480 B
Bash
Executable File
17 lines
480 B
Bash
Executable File
#!/bin/bash
|
|
# ----------------------------------------------------------------------------
|
|
# Echoes project-level directory if a Java file within is newer than the
|
|
# target directory.
|
|
# ----------------------------------------------------------------------------
|
|
|
|
javaFile=${1#*\/src\/*\/java/}
|
|
basename=${1/*\//}
|
|
|
|
[ $basename = "package-info.java" ] && exit 0
|
|
|
|
src=${1/$javaFile/}
|
|
project=${src/src*/}
|
|
target=$project/target
|
|
|
|
[ $target -nt ${src}$javaFile ] || echo ${src/src*/}
|