[S] Change in osmo-ci[master]: scripts/osmocom-api-doxygen.sh: fix upliading libosmo-trx docs
fixeria has submitted this change. ( 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(-) Approvals: pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve Jenkins Builder: Verified 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/ \ - api@ftp.osmocom.org:web-files/latest/"$i"/ + ./"$doc_dir"/ \ + api@ftp.osmocom.org: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: merged Gerrit-Project: osmo-ci Gerrit-Branch: master Gerrit-Change-Id: Ia5add0cdcb2fd24f113c7050cb7efb579b50d8e5 Gerrit-Change-Number: 43785 Gerrit-PatchSet: 2 Gerrit-Owner: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: Jenkins Builder Gerrit-Reviewer: fixeria <vyanitskiy@sysmocom.de> Gerrit-Reviewer: osmith <osmith@sysmocom.de> Gerrit-Reviewer: pespin <pespin@sysmocom.de>
participants (1)
-
fixeria