2 # Build script for opflex
7 ROOT=/tmp/opflex-prefix
10 if [ -d "$ROOT" ]; then rm -rf "$ROOT"; fi
13 # create dependency root prefix
18 tar -xz -C "$ROOT" --strip-components=2 -f libuv.tgz
19 tar -xz -C "$ROOT" --strip-components=2 -f rapidjson.tgz
20 tar -xz -C "$ROOT" --strip-components=2 -f openvswitch.tgz
22 export PATH="$ROOT/bin:$PATH"
23 export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:$ROOT/lib"
24 export PKG_CONFIG_PATH="$ROOT/lib/pkgconfig"
29 ./configure --prefix="$ROOT" \
30 --with-buildversion=$BUILD_NUMBER \
31 CPPFLAGS="-isystem $ROOT/include"
34 if ! make check; then find . -name test-suite.log -exec cat {} \; && false; fi
41 CLASSPATH=target/classes java org.opendaylight.opflex.genie.Genie
42 pushd target/libmodelgbp
44 ./configure --prefix="$ROOT"
54 ./configure --prefix="$ROOT" \
55 --with-buildversion=$BUILD_NUMBER \
56 CPPFLAGS="-isystem $ROOT/include" \
59 if ! make check; then find . -name test-suite.log -exec cat {} \; && false; fi