Showing
1 changed file
with
20 additions
and
0 deletions
tools/build/onos-build-docs
0 → 100755
1 | +#!/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 | + | ||
9 | +apidocs=onos-apidocs-${ONOS_VERSION%~*} | ||
10 | + | ||
11 | +set -e -x | ||
12 | +rm -fr $ONOS_ROOT/docs/target | ||
13 | + | ||
14 | +cd $ONOS_ROOT/docs | ||
15 | +mvn -f external.xml javadoc:aggregate | ||
16 | +cd target && mv site/apidocs $apidocs | ||
17 | +tar zcf $apidocs.tar.gz $apidocs && cp $apidocs.tar.gz /tmp | ||
18 | + | ||
19 | +cd $ONOS_ROOT/docs | ||
20 | +mvn -f pom.xml javadoc:aggregate |
-
Please register or login to post a comment