Skip to content
GitLab
Menu
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
"vscode:/vscode.git/clone" did not exist on "a15bcd6461b5b8237844c4e2968df0518dab5e9a"
Commit
04573324
authored
May 27, 2011
by
Martin Thurau
Browse files
Added compatibility for the linux 'stat' command for the ant plugin
parent
ab2a7b51
Changes
1
Hide whitespace changes
Inline
Side-by-side
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
}
...
...
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