Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
#---------- docs publication ----------
+PUBLISH_VERSION=unreleased
PUBLISH_USER=ianmdlvl@login.chiark.greenend.org.uk
-PUBLISH_DOC_SPHINX=$(PUBLISH_USER):public-html/otter/docs
+PUBLISH_DOC_SPHINX=$(PUBLISH_USER):public-html/otter/$(PUBLISH_VERSION)/docs
publish: doc-sphinx
rsync -r --delete-delay docs/html/. $(PUBLISH_DOC_SPHINX)/.
#---------- non-idempotent things ----------
-$dryrun make -j12 publish
+$dryrun make -j12 PUBLISH_VERSION=$version publish
$dryrun git tag -s -u "$keyid" -m "Otter v$version" $tag
$dryrun git push chiark $tag