# HG changeset patch # User Louis Opter # Date 1485982501 -3600 # Node ID 9c7b566891fc43e57a06dfb8cecc0a4a9d30decc # Parent de2d968228a0e761e1cfd31b541e1537c33039a5 also check that the virtualenv is activated in the demo script diff -r de2d968228a0 -r 9c7b566891fc add_slides.patch --- a/add_slides.patch Wed Feb 01 11:23:23 2017 +0100 +++ b/add_slides.patch Wed Feb 01 21:55:01 2017 +0100 @@ -1,9 +1,13 @@ # HG changeset patch -# Parent 11494fecd49645aca5e36787b4dece9e5d0ee8ee -Start to setup some slides for Fosdem 2017 +# Parent 191742bf4871ca6b3ee45a3dd2fd5fdf967a8cff +Add slides for Fosdem 2017 https://fosdem.org/2017/schedule/event/iot_smart_bulbs/ +This adds the pdf alongside its sources since the build is unlikely to be +reproducible in the future (e.g. scaling bugs within tikz will probably get +fixed at some point and I'm working around them here). + diff --git a/CMakeLists.txt b/CMakeLists.txt --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -8364,16 +8368,25 @@ new file mode 100755 --- /dev/null +++ b/slides/fosdem_2017/monolight-demo.sh -@@ -0,0 +1,23 @@ +@@ -0,0 +1,32 @@ +#!/bin/sh + +check_process() { + local name=$1 + + /bin/echo -n "checking that ${name} is running: " -+ pgrep $name 2>&1 >/dev/null && echo ok || { echo "not running"; exit 1; } ++ pgrep ${name} 2>&1 >/dev/null && echo ok || { echo "not running"; exit 1; } +} + ++check_venv() { ++ local name=$1 ++ ++ /bin/echo -n "checking that the virtualenv ${name} is active: " ++ echo ${VIRTUAL_ENV} | grep ${name} 2>&1 >/dev/null && echo ok || { echo nope; exit 1; } ++} ++ ++check_venv monolight ++ +check_process serialoscd +check_process lightsd +