Commit 6b20925b authored by Philip Withnall's avatar Philip Withnall

build: Add `make upload` target to upload to docs.apertis.org

Signed-off-by: default avatarPhilip Withnall <philip.withnall@collabora.co.uk>
Reviewed-by: default avatarSimon McVittie <simon.mcvittie@collabora.co.uk>
Differential Revision: https://phabricator.apertis.org/D4600
parent 9faf1911
......@@ -63,4 +63,14 @@ clean: clean-examples
GITIGNOREFILES += $(EXAMPLES)
# Deployment
upload: all
tag=$$(git describe | sed 's/apertis\///'); \
[ -n "$$tag" ] || exit 1; \
rsync --archive --compress --verbose --human-readable --delete --perms --chmod=D2775,F664 \
build/html/ \
docs.apertis.org:/srv/docs.apertis.org/www/design/$$tag && \
ssh docs.apertis.org "cd /srv/docs.apertis.org/www/design; rm latest && ln -s $$tag latest"
.PHONY: upload
-include git.mk
......@@ -115,6 +115,20 @@ make pdf
If all goes well, you will find one PDF per input file in `build/pdf`.
# Uploading to docs.apertis.org
If you have sufficient permissions to upload to docs.apertis.org (i.e. SSH
access to that host), you can upload the current version of the documentation
there using:
```
make upload
```
Note that this will update the `latest` symlink on the website, so if you are
manually uploading older releases, please manually update the symlink
afterwards.
# Licensing
Apertis designs are licensed under CC BY-SA 4.0 International. See COPYING
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment