fixeria submitted this change.

View Change

Approvals: Jenkins Builder: Verified pespin: Looks good to me, approved osmith: Looks good to me, but someone else must approve
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(-)

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"/ \
api@ftp.osmocom.org:web-files/latest/"$dest"/

To view, visit change 43786. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-MessageType: merged
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I41eeafedfa2105a8c127d73d3fc37c1130009b3b
Gerrit-Change-Number: 43786
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>