summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xsync-build.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/sync-build.sh b/sync-build.sh
index 0291be1..afcb2e2 100755
--- a/sync-build.sh
+++ b/sync-build.sh
@@ -23,6 +23,7 @@
# * NOCOPY=1 - do not sync the generated binaries back
# * B32=1 - build 32-bit (using /usr/lib32)
# * force_cmake - Set to non-empty to run cmake before make.
+# * NOTRIGGER=1 - Do not immediately start building on execution
# LOCAL source dir (on non-volatile storage for reliability)
localsrcdir=$HOME/projects/wireshark/
@@ -149,6 +150,10 @@ fi
monitor_changes & monpid=$!
+if [ -z "${NOTRIGGER:-}" ]; then
+ sleep .5 && touch "$sync" &
+fi
+
echo Waiting...
while inotifywait -qq -e close_write "$sync"; do
echo Woke up...