fixeria has submitted this change. (
https://gerrit.osmocom.org/c/osmo-ci/+/43786?usp=email )
Change subject: scripts/osmocom-api-doxygen.sh: upload doxygen output only
......................................................................
scripts/osmocom-api-doxygen.sh: upload doxygen output only
So far the whole doc/ directory was uploaded, including files that
have nothing to do with the API documentation: Makefile{,.am,.in},
examples/, manuals/, *.tag.prep stamp files, etc.
Use rsync filter rules to upload only the doxygen output: html/ and
latex/ trees (possibly nested in a per-library subdirectory, like
doc/core/html in libosmocore), plus *.tag files and html.tar. Pass
--delete-excluded, so that the files uploaded previously by mistake
get removed from the server.
Change-Id: I41eeafedfa2105a8c127d73d3fc37c1130009b3b
---
M scripts/osmocom-api-doxygen.sh
1 file changed, 12 insertions(+), 0 deletions(-)
Approvals:
Jenkins Builder: Verified
pespin: Looks good to me, approved
osmith: Looks good to me, but someone else must approve
diff --git a/scripts/osmocom-api-doxygen.sh b/scripts/osmocom-api-doxygen.sh
index 6713b9a..47d83e3 100755
--- a/scripts/osmocom-api-doxygen.sh
+++ b/scripts/osmocom-api-doxygen.sh
@@ -62,9 +62,21 @@
continue
fi
+ # Upload only doxygen output (html/ and latex/ trees, possibly nested in
+ # a per-library subdirectory, plus tag files and html.tar), but not the
+ # other files in doc/ (Makefiles, examples, manuals, ...). Excluded
+ # files that were uploaded previously get deleted on the server.
rsync \
-avz \
--delete \
+ --delete-excluded \
+ --prune-empty-dirs \
+ --include='html/***' \
+ --include='latex/***' \
+ --include='/*.tag' \
+ --include='/html.tar' \
+ --include='*/' \
+ --exclude='*' \
-e "$SSH_CMD" \
./"$doc_dir"/ \
[email protected]:web-files/latest/"$dest"/
--
To view, visit https://gerrit.osmocom.org/c/osmo-ci/+/43786?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: I41eeafedfa2105a8c127d73d3fc37c1130009b3b
Gerrit-Change-Number: 43786
Gerrit-PatchSet: 2
Gerrit-Owner: fixeria <[email protected]>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <[email protected]>
Gerrit-Reviewer: osmith <[email protected]>
Gerrit-Reviewer: pespin <[email protected]>