[scilab] 23/29: Remove watcher.sh
Julien Puydt
julien.puydt at laposte.net
Wed Nov 22 17:19:36 UTC 2017
This is an automated email from the git hooks/post-receive script.
jpuydt-guest pushed a commit to branch master
in repository scilab.
commit 8c17ff4deecd55a0e35e3d990b2339c538c11f84
Author: Julien Puydt <julien.puydt at laposte.net>
Date: Thu Nov 16 09:03:05 2017 +0100
Remove watcher.sh
---
debian/watcher.sh | 44 --------------------------------------------
1 file changed, 44 deletions(-)
diff --git a/debian/watcher.sh b/debian/watcher.sh
deleted file mode 100644
index 0de582d..0000000
--- a/debian/watcher.sh
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/bin/sh
-
-if [ "$#" -ne 4 ]
-then
- echo "Watcher: Bad args: $#"
- exit 1
-fi
-
-CHECK_PID=$1
-DIR="$2"
-FILE="$3"
-GREP_FOR="$4"
-
-echo "Watcher: Check PID: $CHECK_PID"
-echo "Watcher: Directory: $DIR"
-echo "Watcher: File: $FILE"
-echo "Watcher: Grep for: $GREP_FOR"
-
-if [ -d "$DIR" ]; then
- if [ -f "$DIR/watcher-lock" ]; then
- echo "Watcher: not spawning as lock in place"
- exit 1
- else
- echo "Watcher: creating lock"
- touch $DIR/watcher-lock
- fi
-fi
-
-# If the PID we are told still exists (our caller is still running),
-# the directory we are told (the working directory still exists) and
-# the file we are told doesn't exist (the build stamp hasn't been created)
-# keep going
-while ps "$CHECK_PID" > /dev/null &&
- [ -d "$DIR" ] &&
- [ ! -f "$FILE" ]
-do
- sleep 600
- echo "Watcher: Tick."
- ps ux | grep -- "$GREP_FOR" | grep -v grep
-done
-
-echo "Watcher: Terminating."
-echo "Watcher: Removing lock"
-[ -f $DIR/watcher-lock ] && rm $DIR/watcher-lock
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/scilab.git
More information about the debian-science-commits
mailing list