docs: use a shortcode to insert the version string

This commit is contained in:
Nick Craig-Wood 2017-09-25 20:59:46 +01:00
parent 3e9861eecf
commit b2b989434d
4 changed files with 25 additions and 120 deletions

View File

@ -152,7 +152,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
perl -lpe 's/VERSION/${NEW_TAG}/g; s/DATE/'`date -I`'/g;' docs/content/downloads.md.in > docs/content/downloads.md echo -n "$(NEW_TAG)" > docs/layouts/shortcodes/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

@ -5,40 +5,40 @@ type: page
date: "2017-07-22" date: "2017-07-22"
--- ---
Rclone Download v1.37 Rclone Download {{< version >}}
===================== =====================
* Windows * Windows
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-windows-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-windows-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-windows-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-windows-amd64.zip)
* OSX * OSX
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-osx-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-osx-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-osx-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-osx-amd64.zip)
* Linux * Linux
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-linux-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-linux-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-linux-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-linux-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-v1.37-linux-arm.zip) * [ARM - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-linux-arm.zip)
* [ARM - 64 Bit](https://downloads.rclone.org/rclone-v1.37-linux-arm64.zip) * [ARM - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-linux-arm64.zip)
* [MIPS - Big Endian](https://downloads.rclone.org/rclone-v1.37-linux-mips.zip) * [MIPS - Big Endian](https://downloads.rclone.org/rclone-{{< version >}}-linux-mips.zip)
* [MIPS - Little Endian](https://downloads.rclone.org/rclone-v1.37-linux-mipsle.zip) * [MIPS - Little Endian](https://downloads.rclone.org/rclone-{{< version >}}-linux-mipsle.zip)
* FreeBSD * FreeBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-freebsd-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-freebsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-freebsd-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-freebsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-v1.37-freebsd-arm.zip) * [ARM - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-freebsd-arm.zip)
* NetBSD * NetBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-netbsd-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-netbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-netbsd-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-netbsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-v1.37-netbsd-arm.zip) * [ARM - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-netbsd-arm.zip)
* OpenBSD * OpenBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-openbsd-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-openbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-openbsd-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-openbsd-amd64.zip)
* Plan 9 * Plan 9
* [386 - 32 Bit](https://downloads.rclone.org/rclone-v1.37-plan9-386.zip) * [386 - 32 Bit](https://downloads.rclone.org/rclone-{{< version >}}-plan9-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-plan9-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-plan9-amd64.zip)
* Solaris * Solaris
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-v1.37-solaris-amd64.zip) * [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-{{< version >}}-solaris-amd64.zip)
You can also find a [mirror of the downloads on github](https://github.com/ncw/rclone/releases/tag/v1.37). You can also find a [mirror of the downloads on github](https://github.com/ncw/rclone/releases/tag/{{< version >}}).
Beta releases Beta releases
============= =============

View File

@ -1,96 +0,0 @@
---
title: "Rclone downloads"
description: "Download rclone binaries for your OS."
type: page
date: "DATE"
---
Rclone Download VERSION
=====================
* Windows
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-windows-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-windows-amd64.zip)
* OSX
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-osx-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-osx-amd64.zip)
* Linux
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-linux-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-linux-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-VERSION-linux-arm.zip)
* [ARM - 64 Bit](https://downloads.rclone.org/rclone-VERSION-linux-arm64.zip)
* [MIPS - Big Endian](https://downloads.rclone.org/rclone-VERSION-linux-mips.zip)
* [MIPS - Little Endian](https://downloads.rclone.org/rclone-VERSION-linux-mipsle.zip)
* FreeBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-freebsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-freebsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-VERSION-freebsd-arm.zip)
* NetBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-netbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-netbsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-VERSION-netbsd-arm.zip)
* OpenBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-openbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-openbsd-amd64.zip)
* Plan 9
* [386 - 32 Bit](https://downloads.rclone.org/rclone-VERSION-plan9-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-plan9-amd64.zip)
* Solaris
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-VERSION-solaris-amd64.zip)
You can also find a [mirror of the downloads on github](https://github.com/ncw/rclone/releases/tag/VERSION).
Beta releases
=============
[Beta releases](https://beta.rclone.org) are generated from each commit
to master. Note these are named like
{Version Tag}-{Commit Number}-g{Git Commit Hash}
You can match the `Git Commit Hash` up with the [git
log](https://github.com/ncw/rclone/commits/master). The most recent
release will have the largest `Version Tag` and `Commit Number` and
will normally be at the end of the list.
The beta releases haven't been through the full integration test suite
like the releases. However it is useful to try the latest beta before
reporting an issue.
Downloads for scripting
=======================
If you would like to download the current version (maybe from a
script) from a URL which doesn't change then you can use these links.
* Windows
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-windows-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-windows-amd64.zip)
* OSX
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-osx-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-osx-amd64.zip)
* Linux
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-linux-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-linux-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-current-linux-arm.zip)
* FreeBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-freebsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-freebsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-current-freebsd-arm.zip)
* NetBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-netbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-netbsd-amd64.zip)
* [ARM - 32 Bit](https://downloads.rclone.org/rclone-current-netbsd-arm.zip)
* OpenBSD
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-openbsd-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-openbsd-amd64.zip)
* Plan 9
* [386 - 32 Bit](https://downloads.rclone.org/rclone-current-plan9-386.zip)
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-plan9-amd64.zip)
* Solaris
* [AMD64 - 64 Bit](https://downloads.rclone.org/rclone-current-solaris-amd64.zip)
Older Downloads
==============
Older downloads can be found [here](https://downloads.rclone.org/)

View File

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