Browse code

fix double -f and corrected format.

-f%m was getting called twice in the stat_cmd
corrected format of stat command from y to Y.

Brian Riddle authored on 31/05/2011 at 12:16:43
Showing 1 changed files
... ...
@@ -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
 }