File: setup-ovs.sh

package info (click to toggle)
python-ovsdbapp 2.13.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,040 kB
  • sloc: python: 9,222; sh: 138; makefile: 21
file content (16 lines) | stat: -rwxr-xr-x 509 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/bash -xe

OVN_BRANCH=${OVN_BRANCH:-main}

if [ "$OVN_SRCDIR" -a ! -d "$OVN_SRCDIR" ]; then
    echo "Building OVN branch $OVN_BRANCH in $OVN_SRCDIR"
    mkdir -p $OVN_SRCDIR
    git clone --recurse-submodules https://github.com/ovn-org/ovn.git $OVN_SRCDIR
    pushd $OVN_SRCDIR
    git checkout $OVN_BRANCH
    pushd ovs
    ./boot.sh && PYTHON=/usr/bin/python ./configure && make -j$(($(nproc) + 1))
    popd
    ./boot.sh && PYTHON=/usr/bin/python ./configure && make -j$(($(nproc) + 1))
    popd
fi