Use [ -nt ] instead of stat -f%m to check cache files.

This commit is contained in:
Spencer Rinehart
2013-03-12 13:11:18 -04:00
parent 0ab0e67ecf
commit 300f94cb0e
4 changed files with 13 additions and 42 deletions

View File

@ -1,10 +1,7 @@
_phing_does_target_list_need_generating () {
if [ ! -f .phing_targets ]; then return 0;
else
accurate=$(stat -f%m .phing_targets)
changed=$(stat -f%m build.xml)
return $(expr $accurate '>=' $changed)
fi
[ ! -f .phing_targets ] && return 0;
[ .phing_targets -nt build.xml ] && return 0;
return 1;
}
_phing () {