summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtf2_watch10
1 files changed, 10 insertions, 0 deletions
diff --git a/tf2_watch b/tf2_watch
index b8e205b..5cf294a 100755
--- a/tf2_watch
+++ b/tf2_watch
@@ -9,6 +9,16 @@ if [ -z "${TIME_BETWEEN_SAMPLES}" ]; then
TIME_BETWEEN_SAMPLES="25"
fi
+depends() {
+ if ! type "$1" >/dev/null; then
+ die "\"$1\" must be installed and in your \$PATH"
+ fi
+}
+
+depends pkill
+depends mupdf
+depends rosrun
+
GENERATED_PDF="frames.pdf"
GENERATED_RV="frames.gv"