fixeria has uploaded this change for review. ( 
https://gerrit.osmocom.org/c/osmo-ci/+/43785?usp=email )


Change subject: scripts/osmocom-api-doxygen.sh: fix upliading libosmo-trx docs
......................................................................

scripts/osmocom-api-doxygen.sh: fix upliading libosmo-trx docs

libosmo-trx lives in osmo-trx.git and has its own doc directory:

  ./libosmo-trx/doc

Upload this directory instead of the repository root ./doc that
contains no API documentation at all.

Change-Id: Ia5add0cdcb2fd24f113c7050cb7efb579b50d8e5
Fixes: 29da2f1 ("scripts/osmocom-api-doxygen.sh: add libusrp, osmo-e1d, 
osmo-trx")
---
M scripts/osmocom-api-doxygen.sh
1 file changed, 15 insertions(+), 3 deletions(-)



  git pull ssh://gerrit.osmocom.org:29418/osmo-ci refs/changes/85/43785/1

diff --git a/scripts/osmocom-api-doxygen.sh b/scripts/osmocom-api-doxygen.sh
index 018e1fc..6713b9a 100755
--- a/scripts/osmocom-api-doxygen.sh
+++ b/scripts/osmocom-api-doxygen.sh
@@ -44,7 +44,19 @@

 # Upload all docs
 for i in $repos_api; do
-       if ! [ -d "$i"/doc ]; then
+       # Some repos ship their API docs in a subdirectory, under a different 
name
+       case "$i" in
+       osmo-trx)
+               doc_dir="$i/libosmo-trx/doc"
+               dest="$i/libosmo-trx"
+               ;;
+       *)
+               doc_dir="$i/doc"
+               dest="$i"
+               ;;
+       esac
+
+       if ! [ -d "$doc_dir" ]; then
                # e.g. libosmo-abis is built as dependency for others but 
doesn't
                # have its own doxygen documentation as of writing
                continue
@@ -54,6 +66,6 @@
                -avz \
                --delete \
                -e "$SSH_CMD" \
-               ./"$i"/doc/ \
-               [email protected]:web-files/latest/"$i"/
+               ./"$doc_dir"/ \
+               [email protected]:web-files/latest/"$dest"/
 done

--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43785?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings?usp=email

Gerrit-MessageType: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: Ia5add0cdcb2fd24f113c7050cb7efb579b50d8e5
Gerrit-Change-Number: 43785
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to