fixeria has uploaded this change for review. ( 
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(-)



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

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: newchange
Gerrit-Project: osmo-ci
Gerrit-Branch: master
Gerrit-Change-Id: I41eeafedfa2105a8c127d73d3fc37c1130009b3b
Gerrit-Change-Number: 43786
Gerrit-PatchSet: 1
Gerrit-Owner: fixeria <[email protected]>

Reply via email to