JJB jobs for the OpFlex project
[releng/builder.git] / jjb / opflex / include-raw-openvswitch_tgz-build.sh
1 #!/bin/bash
2 # Build script for openvswitch
3
4 set -e
5 set -x
6
7 ROOT=/tmp/opflex-prefix
8 DESTDIR=install-root
9
10 mkdir -p "$DESTDIR"
11
12 ./boot.sh
13 ./configure --prefix="$ROOT" --enable-shared
14 make -j8
15 DESTDIR=`pwd`/$DESTDIR make install
16 find lib ofproto -name "*.h" -exec cp --parents -t "$DESTDIR/$ROOT/include/openvswitch/" {} \;
17
18 pushd $DESTDIR
19 tar -czf openvswitch.tgz *