-
-
Notifications
You must be signed in to change notification settings - Fork 4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Version v0.96 - automate the release process
- Loading branch information
Showing
13 changed files
with
203 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ rclone | |
rclonetest/rclonetest | ||
build | ||
docs/public | ||
README.html | ||
README.txt | ||
rclone.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,61 @@ | ||
rclone: | ||
TAG := $(shell git describe --tags) | ||
LAST_TAG := $(shell git describe --tags --abbrev=0) | ||
NEW_TAG := $(shell echo $(LAST_TAG) | perl -lpe 's/v//; $$_ += 0.01; $$_ = "v" . $$_') | ||
|
||
rclone: *.go */*.go | ||
@go version | ||
go build | ||
|
||
doc: rclone.1 README.html README.txt | ||
|
||
rclone.1: README.md | ||
pandoc -s --from markdown --to man README.md -o rclone.1 | ||
|
||
README.html: README.md | ||
pandoc -s --from markdown_github --to html README.md -o README.html | ||
|
||
README.txt: README.md | ||
pandoc -s --from markdown_github --to plain README.md -o README.txt | ||
|
||
install: rclone | ||
install -d ${DESTDIR}/usr/bin | ||
install -t ${DESTDIR}/usr/bin rclone | ||
|
||
clean: | ||
go clean | ||
go clean ./... | ||
find . -name \*~ | xargs -r rm -f | ||
rm -rf build docs/public | ||
rm -f rclone rclonetest/rclonetest rclone.1 README.html README.txt | ||
|
||
website: | ||
cd docs && hugo | ||
|
||
upload_website: website | ||
./rclone sync docs/public memstore:www-rclone-org | ||
./rclone -v sync docs/public memstore:www-rclone-org | ||
|
||
upload: | ||
rsync -avz build/ www.craig-wood.com:public_html/pub/rclone/ | ||
./rclone -v copy build/ memstore:downloads-rclone-org | ||
|
||
cross: | ||
./cross-compile | ||
cross: doc | ||
./cross-compile $(TAG) | ||
|
||
serve: | ||
cd docs && hugo server -v -w | ||
|
||
tag: | ||
@echo "Old tag is $(LAST_TAG)" | ||
@echo "New tag is $(NEW_TAG)" | ||
echo -e "package main\n const Version = \"$(NEW_TAG)\"\n" | gofmt > version.go | ||
cp -av version.go rclonetest/version.go | ||
perl -lpe 's/VERSION/${NEW_TAG}/g; s/DATE/'`date -I`'/g;' docs/content/downloads.md.in > docs/content/downloads.md | ||
git tag $(NEW_TAG) | ||
@echo "Add this to changelog in README.md" | ||
@echo " * $(NEW_TAG) - " `date -I` | ||
@git log $(LAST_TAG)..$(NEW_TAG) --oneline | ||
@echo "Then commit the changes" | ||
@echo git commit -m "Version $(NEW_TAG)" -a -v | ||
@echo "And finally run make retag before make cross etc" | ||
|
||
retag: | ||
echo git tag -f $(LAST_TAG) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,31 @@ | ||
#!/bin/sh | ||
|
||
set -e | ||
|
||
# This uses gox from https://github.com/mitchellh/gox | ||
# Make sure you've run gox -build-toolchain | ||
|
||
rm -rf build | ||
|
||
gox -output "build/{{.OS}}/{{.Arch}}/{{.Dir}}" | ||
if [ "$1" == "" ]; then | ||
echo "Syntax: $0 Version" | ||
exit 1 | ||
fi | ||
VERSION="$1" | ||
|
||
cat <<'#EOF' > build/README.txt | ||
This directory contains builds of the rclone program. | ||
Rclone is a program to transfer files to and from cloud storage | ||
systems such as Google Drive, Amazon S3 and Swift (Rackspace | ||
Cloudfiles). | ||
rm -rf build | ||
|
||
See the project website here: https://github.com/ncw/rclone for more | ||
details. | ||
gox -output "build/{{.Dir}}-${VERSION}-{{.OS}}-{{.Arch}}/{{.Dir}}" | ||
|
||
The files in this directory are organised by OS and processor type | ||
mv build/rclone-${VERSION}-darwin-amd64 build/rclone-${VERSION}-osx-amd64 | ||
mv build/rclone-${VERSION}-darwin-386 build/rclone-${VERSION}-osx-386 | ||
|
||
#EOF | ||
cd build | ||
|
||
mv build/darwin build/osx | ||
for d in `ls`; do | ||
cp -a ../README.txt $d/ | ||
cp -a ../README.html $d/ | ||
cp -a ../rclone.1 $d/ | ||
zip -r9 $d.zip $d | ||
rm -rf $d | ||
done | ||
|
||
( cd build ; tree . >> README.txt ) | ||
cd .. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Rclone downloads" | ||
description: "Download rclone binaries for your OS." | ||
type: page | ||
date: "2014-04-25" | ||
--- | ||
|
||
v0.96 | ||
===== | ||
|
||
* Windows | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-windows-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-windows-amd64.zip) | ||
* OSX | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-osx-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-osx-amd64.zip) | ||
* Linux | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-linux-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-linux-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-v0.96-linux-arm.zip) | ||
* FreeBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-freebsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-freebsd-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-v0.96-freebsd-arm.zip) | ||
* NetBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-netbsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-netbsd-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-v0.96-netbsd-arm.zip) | ||
* OpenBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-openbsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-v0.96-openbsd-amd64.zip) | ||
* Plan 9 | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-v0.96-plan9-386.zip) | ||
|
||
Older downloads can be found [here](http://downloads.rclone.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
--- | ||
title: "Rclone downloads" | ||
description: "Download rclone binaries for your OS." | ||
type: page | ||
date: "DATE" | ||
--- | ||
|
||
VERSION | ||
===== | ||
|
||
* Windows | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-windows-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-windows-amd64.zip) | ||
* OSX | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-osx-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-osx-amd64.zip) | ||
* Linux | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-linux-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-linux-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-VERSION-linux-arm.zip) | ||
* FreeBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-freebsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-freebsd-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-VERSION-freebsd-arm.zip) | ||
* NetBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-netbsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-netbsd-amd64.zip) | ||
* [ARM - 32 Bit](http://downloads.rclone.org/rclone-VERSION-netbsd-arm.zip) | ||
* OpenBSD | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-openbsd-386.zip) | ||
* [AMD64 - 64 Bit](http://downloads.rclone.org/rclone-VERSION-openbsd-amd64.zip) | ||
* Plan 9 | ||
* [386 - 32 Bit](http://downloads.rclone.org/rclone-VERSION-plan9-386.zip) | ||
|
||
Older downloads can be found [here](http://downloads.rclone.org/) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package main | ||
|
||
const Version = "v0.95" | ||
const Version = "v0.96" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
package main | ||
|
||
const Version = "v0.95" | ||
const Version = "v0.96" |