chiark / gitweb /
Makefile, make-release: Publish to unreleased/docs/ by default
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 May 2022 19:20:52 +0000 (20:20 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Thu, 5 May 2022 20:00:39 +0000 (21:00 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Makefile
make-release

index 46353057feb33878ac0b34264b12f3206eaf8b4c..3e8559413d757cbdf8bad596243e90169dd3fea0 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -466,8 +466,9 @@ stamp/wdt-%.lcheck: $(WDT_DEPS)
 
 #---------- 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)/.
index 98dfc2315407ea3cfc1369e3eb19c6b6060b640f..1a8776badcdf0a9cec505c9c298100fc154e442f 100755 (executable)
@@ -102,7 +102,7 @@ $dryrun git push origin $branch
 
 #---------- 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