aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZyX <kp-pav@yandex.ru>2017-04-19 19:08:27 +0300
committerZyX <kp-pav@yandex.ru>2017-04-19 19:10:53 +0300
commit4555bf9e7f8829053e3a687f814a2036d72ce0e1 (patch)
tree225eb4329c5b5385824ad5b34b708df9d9a77620
parent9fd048d901e1191dc56066e4be70014c3387c9fe (diff)
downloadrneovim-4555bf9e7f8829053e3a687f814a2036d72ce0e1.tar.gz
rneovim-4555bf9e7f8829053e3a687f814a2036d72ce0e1.tar.bz2
rneovim-4555bf9e7f8829053e3a687f814a2036d72ce0e1.zip
scripts: Allow patching only build files
-rwxr-xr-xscripts/pvscheck.sh22
1 files changed, 16 insertions, 6 deletions
diff --git a/scripts/pvscheck.sh b/scripts/pvscheck.sh
index e2d2a2eada..5020d5f86a 100755
--- a/scripts/pvscheck.sh
+++ b/scripts/pvscheck.sh
@@ -12,12 +12,14 @@ help() {
echo 'Usage:'
echo ' pvscheck.sh [target-directory [branch]]'
echo ' pvscheck.sh [--recheck] [target-directory]'
- echo ' pvscheck.sh --patch'
+ echo ' pvscheck.sh --patch [--only-build]'
echo
echo ' --patch: patch sources in the current directory.'
echo ' Does not patch already patched files.'
echo ' Does not run analysis.'
echo
+ echo ' --only-build: Only patch files in ./build directory.'
+ echo
echo ' --recheck: run analysis on a prepared target directory.'
echo
echo ' target-directory: Directory where build should occur.'
@@ -75,10 +77,12 @@ patch_sources() {
fi
'
- find \
- src/nvim test/functional/fixtures test/unit/fixtures \
- -name '*.c' \
- -exec /bin/sh -c "$sh_script" - '{}' \;
+ if test "x$1" != "x--only-build" ; then
+ find \
+ src/nvim test/functional/fixtures test/unit/fixtures \
+ -name '*.c' \
+ -exec /bin/sh -c "$sh_script" - '{}' \;
+ fi
find \
build/src/nvim/auto build/config \
@@ -138,7 +142,13 @@ main() {
set -x
if test "x$1" = "x--patch" ; then
- patch_sources
+ shift
+ if test "x$1" = "x--only-build" ; then
+ shift
+ patch_sources --only-build
+ else
+ patch_sources
+ fi
exit $?
fi