blob: b9c752e8edfcf3095c95b3f9d47fb70496b1d593 [file] [log] [blame]
tom82d6bde2014-09-23 17:33:58 -07001#!/bin/bash
Pavlin Radoslavov91413792014-10-15 11:00:32 -07002# -----------------------------------------------------------------------------
tom82d6bde2014-09-23 17:33:58 -07003# Builds the ONOS from source.
Pavlin Radoslavov91413792014-10-15 11:00:32 -07004# -----------------------------------------------------------------------------
tom82d6bde2014-09-23 17:33:58 -07005
Brian O'Connorf5d93632015-09-04 20:18:31 -07006set -e
7
tom82d6bde2014-09-23 17:33:58 -07008[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
9. $ONOS_ROOT/tools/build/envDefaults
10
Thomas Vachuska379ff9b2014-10-31 11:58:43 -070011cd $ONOS_ROOT && mvn clean install "$@"