blob: b062264738b2c8ab2ebe1e491c98cd91b89d2a62 [file] [log] [blame]
pierventre80b532d2022-07-29 21:57:16 +02001#!/bin/bash
2# -----------------------------------------------------------------------------
3# Uploads ONOS Java API docs.
4# -----------------------------------------------------------------------------
5
6set -e
7
8[ ! -d "$ONOS_ROOT" ] && echo "ONOS_ROOT is not defined" >&2 && exit 1
9. $ONOS_ROOT/tools/build/envDefaults
10
11docs="bazel-bin/docs/external.jar"
12docs_path="bazel-bin/docs/tmp"
13mkdir -p ${docs_path}
14
15ONOS_VERSION_STRING=${ONOS_VERSION}
16if echo ${ONOS_VERSION_STRING} | grep -- '-b'; then
17 echo "ONOS version ${ONOS_VERSION_STRING} is a beta. Skipping"
18 exit 0
19fi
20
21unzip ${docs} -d ${docs_path}