X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=docs%2Fbuild-integration-robot-libdoc.sh;h=038b4c610649c15f68ff663ed3d8ac89a1cd6b0a;hb=cd650b767fd4a74815b8a0626f3c03b6d7656c90;hp=04cf3c787d881ba17df419cfd1203149ac8de224;hpb=4fcbb445017ad4384109aaf03f6572409e13af7c;p=docs.git diff --git a/docs/build-integration-robot-libdoc.sh b/docs/build-integration-robot-libdoc.sh index 04cf3c787..038b4c610 100755 --- a/docs/build-integration-robot-libdoc.sh +++ b/docs/build-integration-robot-libdoc.sh @@ -1,17 +1,53 @@ #!/bin/bash +# @License EPL-1.0 +############################################################################## +# Copyright (c) 2016 Red Hat, Inc. and others. +# Copyright (c) 2017 The Linux Foundation and others. +# +# All rights reserved. This program and the accompanying materials +# are made available under the terms of the Eclipse Public License v1.0 +# which accompanies this distribution, and is available at +# http://www.eclipse.org/legal/epl-v10.html +############################################################################## -ROBOT_DIR=`pwd`/_static/integration/robot -TMP_ROBOT_DIR=`pwd`/_build/robot +CSIT_DIR="submodules/integration/test/csit/libraries" +ROBOT_DIR="$(pwd)/_static/integration/robot" +TMP_ROBOT_DIR="$(pwd)/_build/robot" -mkdir -p $ROBOT_DIR $TMP_ROBOT_DIR -cd submodules/integration/test/csit/libraries -for f in *.robot; do python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html; done -for f in *.py; do python -m robot.libdoc $f $TMP_ROBOT_DIR/$f.html > /dev/null 2>&1; done +mkdir -p "$ROBOT_DIR" "$TMP_ROBOT_DIR" -cd $TMP_ROBOT_DIR/ -echo "" >> "$ROBOT_DIR/index.html" +popd +# --- END BUILD ROBOT INDEX --- #