Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
adam.huang
Ohmyzsh
Commits
04573324
Commit
04573324
authored
13 years ago
by
Martin Thurau
Browse files
Options
Download
Email Patches
Plain Diff
Added compatibility for the linux 'stat' command for the ant plugin
parent
ab2a7b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
plugins/ant/ant.plugin.zsh
+9
-2
plugins/ant/ant.plugin.zsh
with
9 additions
and
2 deletions
+9
-2
plugins/ant/ant.plugin.zsh
View file @
04573324
stat
-f
%m
.
>
/dev/null 2>&1
if
[
"
$?
"
=
0
]
;
then
stat_cmd
=(
stat
-f
%m
)
else
stat_cmd
=(
stat
-L
--format
=
%y
)
fi
_ant_does_target_list_need_generating
()
{
if
[
!
-f
.ant_targets
]
;
then return
0
;
else
accurate
=
$(
stat
-f
%m .ant_targets
)
changed
=
$(
stat
-f
%m build.xml
)
accurate
=
$(
$
stat
_cmd
-f
%m .ant_targets
)
changed
=
$(
$
stat
_cmd
-f
%m build.xml
)
return
$(
expr
$accurate
'>='
$changed
)
fi
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment
Menu
Projects
Groups
Snippets
Help