1
mirror of https://github.com/rclone/rclone synced 2025-01-03 03:46:24 +01:00

docs: turn version into a partial so it can be reused more easily

This commit is contained in:
Nick Craig-Wood 2018-02-13 11:19:19 +00:00
parent ff6a7142da
commit 99f3c8bc93
3 changed files with 3 additions and 2 deletions

View File

@ -154,7 +154,7 @@ tag: doc
@echo "Old tag is $(LAST_TAG)" @echo "Old tag is $(LAST_TAG)"
@echo "New tag is $(NEW_TAG)" @echo "New tag is $(NEW_TAG)"
echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEW_TAG)\"\n" | gofmt > fs/version.go echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEW_TAG)\"\n" | gofmt > fs/version.go
echo -n "$(NEW_TAG)" > docs/layouts/shortcodes/version.html echo -n "$(NEW_TAG)" > docs/layouts/partials/version.html
git tag $(NEW_TAG) git tag $(NEW_TAG)
@echo "Edit the new changelog in docs/content/changelog.md" @echo "Edit the new changelog in docs/content/changelog.md"
@echo " * $(NEW_TAG) -" `date -I` >> docs/content/changelog.md @echo " * $(NEW_TAG) -" `date -I` >> docs/content/changelog.md

View File

@ -0,0 +1 @@
v1.39

View File

@ -1 +1 @@
v1.39 {{ partial "version.html" . }}