blob: 861582a00eb87b8b19246d83b6876a213cdbb51b [file] [log] [blame]
Thomas Vachuska45331492014-10-31 11:08:11 -07001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Builds the ONOS from source.
4# -----------------------------------------------------------------------------
5
6[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
7. $ONOS_ROOT/tools/build/envDefaults
8
9apidocs=onos-apidocs-${ONOS_VERSION%~*}
10
11set -e -x
12rm -fr $ONOS_ROOT/docs/target
13
14cd $ONOS_ROOT/docs
15mvn -f external.xml javadoc:aggregate
16cd target && mv site/apidocs $apidocs
17tar zcf $apidocs.tar.gz $apidocs && cp $apidocs.tar.gz /tmp
18
19cd $ONOS_ROOT/docs
20mvn -f pom.xml javadoc:aggregate