mirror of
https://github.com/neovim/neovim.git
synced 2024-12-19 18:55:14 -07:00
pvscheck: Add help
This commit is contained in:
parent
ebfcf2fa38
commit
59f0cbc282
@ -64,9 +64,25 @@ patch_sources() {
|
||||
-exec /bin/sh -c "$sh_script" - '{}' \;
|
||||
}
|
||||
|
||||
help() {
|
||||
echo 'Usage: pvscheck.sh [target-directory [branch]]'
|
||||
echo
|
||||
echo ' target-directory: Directory where build should occur'
|
||||
echo ' Default: ../neovim-pvs'
|
||||
echo
|
||||
echo ' branch: Branch to check'
|
||||
echo ' Must not be already checked out: uses git worktree.'
|
||||
echo ' Default: master'
|
||||
}
|
||||
|
||||
main() {
|
||||
local PVS_URL="http://files.viva64.com/pvs-studio-6.14.21446.1-x86_64.tgz"
|
||||
|
||||
if test "x$1" = "x--help" ; then
|
||||
help
|
||||
return 0
|
||||
fi
|
||||
|
||||
local tgt="${1:-$PWD/../neovim-pvs}"
|
||||
local branch="${2:-master}"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user