]> rtime.felk.cvut.cz Git - frescor/demo.git/commitdiff
export FCB_ADDR in run-pipeline script
authorMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 14 May 2010 15:15:48 +0000 (17:15 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Fri, 14 May 2010 15:15:48 +0000 (17:15 +0200)
This is needed for streamer to negotiate the contracts with the
resource manager running on the remote end.

build/run-pipeline.sh

index e6de6e39f6192bb9a485d84be0026f515a10b409..c64dfb3c3a652b2e876e485ca252001a7871f3e3 100755 (executable)
@@ -1,10 +1,17 @@
 #!/bin/bash
 
+die() { set +x; echo $1; exit 1; }
+
 set -e
 set -x
 NUM=$1
 export NUM
 
+[ -z "$NUM" ] && die 'No number specified as $1'
+
+# Use contract broker running at the second computer (glab)
+export FCB_ADDR=192.168.1.10
+
 BUILD=`basename $PWD`
 #[ "$BUILD" = "build" ] && WRAPPER="sudo chrt -f 50"