From f6b73cdb4637bdc1efdab17d9ac645c096dfe30d Mon Sep 17 00:00:00 2001 From: Peter Wu Date: Tue, 31 Jul 2018 23:00:32 +0200 Subject: sync-build.sh: drop obsolete cmake options, ignore some changes Do not wake up on running tests (which might touch __pycache__ and pytest files). --- sync-build.sh | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/sync-build.sh b/sync-build.sh index 7976db0..9a7c1bf 100755 --- a/sync-build.sh +++ b/sync-build.sh @@ -124,10 +124,6 @@ if $force_cmake || [ ! -e $builddir/CMakeCache.txt ]; then -DCMAKE_INSTALL_PREFIX=/tmp/wsroot \ -DCMAKE_BUILD_WITH_INSTALL_RPATH=1 \ -DCMAKE_INSTALL_RPATH=$(printf %q "$RPATH") \ - -DENABLE_GTK3=1 \ - -DENABLE_PORTAUDIO=1 \ - -DENABLE_QT5=1 \ - -DENABLE_GEOIP=1 \ -DENABLE_KERBEROS=1 \ -DENABLE_SBC=1 \ -DENABLE_SMI=0 \ @@ -163,9 +159,10 @@ trap cleanup EXIT round=0 monitor_changes() { # Wait for changes, but ignore .git/ and vim swap files + # and also pytest_cache and Python 3 cache directory. # NOTE: you cannot add multiple --exclude options, they must be combined inotifywait -r -m -e close_write \ - --exclude='/(\.[^/]+)?\.swp?.$|~$|\/.git/' \ + --exclude='/(\.[^/]+)?\.swp?.$|~$|\/(\.git|\.pytest_cache|__pycache__)/' \ "$localsrcdir/" | while read x; do printf '\e[36m%s\e[m\n' "Trigger $((++round)): $x" >&2 -- cgit v1.2.1