fixes for ant plugin. tested on mac.
Robby Russell authored on 01/06/2011 at 21:39:08... | ... |
@@ -2,14 +2,14 @@ stat -f%m . > /dev/null 2>&1 |
2 | 2 |
if [ "$?" = 0 ]; then |
3 | 3 |
stat_cmd=(stat -f%m) |
4 | 4 |
else |
5 |
- stat_cmd=(stat -L --format=%y) |
|
5 |
+ stat_cmd=(stat -L --format=%Y) |
|
6 | 6 |
fi |
7 | 7 |
|
8 | 8 |
_ant_does_target_list_need_generating () { |
9 | 9 |
if [ ! -f .ant_targets ]; then return 0; |
10 | 10 |
else |
11 |
- accurate=$($stat_cmd -f%m .ant_targets) |
|
12 |
- changed=$($stat_cmd -f%m build.xml) |
|
11 |
+ accurate=$($stat_cmd .ant_targets) |
|
12 |
+ changed=$($stat_cmd build.xml) |
|
13 | 13 |
return $(expr $accurate '>=' $changed) |
14 | 14 |
fi |
15 | 15 |
} |