"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files
Go azure-blobazure-blob-storageazure-filesbackblaze-b2cloud-storagedropboxencryptionftpfuse-filesystemgogolanggoogle-cloud-storagegoogle-driveonedriveopenstack-swiftrclones3sftpsyncwebdav
Configurable version suffix independent of version number
albertonyce168ecac214
diff --git a/Makefile b/Makefileindex f96e1d92a..f921a2743 100644--- a/Makefile+++ b/Makefile@@ -245,18 +245,18 @@ retag:startdev:@echo "Version is $(VERSION)"@echo "Next version is $(NEXT_VERSION)"- echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEXT_VERSION)-DEV\"\n" | gofmt > fs/version.go+ echo -e "package fs\n\n// VersionTag of rclone\nvar VersionTag = \"$(NEXT_VERSION)\"\n" | gofmt > fs/versiontag.goecho -n "$(NEXT_VERSION)" > docs/layouts/partials/version.htmlecho "$(NEXT_VERSION)" > VERSION- git commit -m "Start $(NEXT_VERSION)-DEV development" fs/version.go VERSION docs/layouts/partials/version.html+ git commit -m "Start $(NEXT_VERSION)-DEV development" fs/versiontag.go VERSION docs/layouts/partials/version.htmlstartstable:@echo "Version is $(VERSION)"@echo "Next stable version is $(NEXT_PATCH_VERSION)"- echo -e "package fs\n\n// Version of rclone\nvar Version = \"$(NEXT_PATCH_VERSION)-DEV\"\n" | gofmt > fs/version.go+ echo -e "package fs\n\n// VersionTag of rclone\nvar VersionTag = \"$(NEXT_PATCH_VERSION)\"\n" | gofmt > fs/versiontag.goecho -n "$(NEXT_PATCH_VERSION)" > docs/layouts/partials/version.htmlecho "$(NEXT_PATCH_VERSION)" > VERSION- git commit -m "Start $(NEXT_PATCH_VERSION)-DEV development" fs/version.go VERSION docs/layouts/partials/version.html+ git commit -m "Start $(NEXT_PATCH_VERSION)-DEV development" fs/versiontag.go VERSION docs/layouts/partials/version.htmlwinzip:zip -9 rclone-$(TAG).zip rclone.exediff --git a/fs/version.go b/fs/version.goindex fc23bb3ba..bebf62fd1 100644--- a/fs/version.go+++ b/fs/version.go@@ -1,4 +1,14 @@package fs-// Version of rclone-var Version = "v1.59.0-DEV"+// Version of rclone containing the complete version string+var Version string++func init() {+ if Version == "" {+ if VersionSuffix == "" {+ Version = VersionTag+ } else {+ Version = VersionTag + "-" + VersionSuffix+ }+ }+}diff --git a/fs/versionsuffix.go b/fs/versionsuffix.gonew file mode 100644index 000000000..cf7c7cfcd--- /dev/null+++ b/fs/versionsuffix.go@@ -0,0 +1,4 @@+package fs++// VersionSuffix of rclone containing the pre-release label if any+var VersionSuffix = "DEV"diff --git a/fs/versiontag.go b/fs/versiontag.gonew file mode 100644index 000000000..714e98978--- /dev/null+++ b/fs/versiontag.go@@ -0,0 +1,4 @@+package fs++// VersionTag of rclone+var VersionTag = "v1.59.0"