mirror of
https://github.com/rclone/rclone.git
synced 2024-11-28 11:25:18 +01:00
Version v0.96 - automate the release process
This commit is contained in:
parent
a81ae3c3f9
commit
365dc2ff59
3
.gitignore
vendored
3
.gitignore
vendored
@ -4,3 +4,6 @@ rclone
|
|||||||
rclonetest/rclonetest
|
rclonetest/rclonetest
|
||||||
build
|
build
|
||||||
docs/public
|
docs/public
|
||||||
|
README.html
|
||||||
|
README.txt
|
||||||
|
rclone.1
|
||||||
|
51
Makefile
51
Makefile
@ -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
|
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:
|
clean:
|
||||||
go clean
|
go clean ./...
|
||||||
find . -name \*~ | xargs -r rm -f
|
find . -name \*~ | xargs -r rm -f
|
||||||
rm -rf build docs/public
|
rm -rf build docs/public
|
||||||
|
rm -f rclone rclonetest/rclonetest rclone.1 README.html README.txt
|
||||||
|
|
||||||
website:
|
website:
|
||||||
cd docs && hugo
|
cd docs && hugo
|
||||||
|
|
||||||
upload_website: website
|
upload_website: website
|
||||||
./rclone sync docs/public memstore:www-rclone-org
|
./rclone -v sync docs/public memstore:www-rclone-org
|
||||||
|
|
||||||
upload:
|
upload:
|
||||||
rsync -avz build/ www.craig-wood.com:public_html/pub/rclone/
|
./rclone -v copy build/ memstore:downloads-rclone-org
|
||||||
|
|
||||||
cross:
|
cross: doc
|
||||||
./cross-compile
|
./cross-compile $(TAG)
|
||||||
|
|
||||||
serve:
|
serve:
|
||||||
cd docs && hugo server -v -w
|
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)
|
||||||
|
|
||||||
|
37
README.md
37
README.md
@ -1,3 +1,7 @@
|
|||||||
|
% rclone(1) User Manual
|
||||||
|
% Nick Craig-Wood
|
||||||
|
% Apr 24, 2014
|
||||||
|
|
||||||
Rclone
|
Rclone
|
||||||
======
|
======
|
||||||
|
|
||||||
@ -29,13 +33,13 @@ Install
|
|||||||
|
|
||||||
Rclone is a Go program and comes as a single binary file.
|
Rclone is a Go program and comes as a single binary file.
|
||||||
|
|
||||||
Download the relevant binary from
|
Download the binary for your OS from
|
||||||
|
|
||||||
* http://www.craig-wood.com/nick/pub/rclone/
|
* http://rclone.org/downloads/
|
||||||
|
|
||||||
Or alternatively if you have Go installed use
|
Or alternatively if you have Go installed use
|
||||||
|
|
||||||
go get github.com/ncw/rclone
|
go install github.com/ncw/rclone
|
||||||
|
|
||||||
and this will build the binary in `$GOPATH/bin`.
|
and this will build the binary in `$GOPATH/bin`.
|
||||||
|
|
||||||
@ -190,6 +194,33 @@ Bugs
|
|||||||
* Empty directories left behind with Local and Drive
|
* Empty directories left behind with Local and Drive
|
||||||
* eg purging a local directory with subdirectories doesn't work
|
* eg purging a local directory with subdirectories doesn't work
|
||||||
|
|
||||||
|
Changelog
|
||||||
|
---------
|
||||||
|
|
||||||
|
* v0.96 - 2014-04-24
|
||||||
|
* drive: Fix multiple files of same name being created
|
||||||
|
* drive: Use o.Update and fs.Put to optimise transfers
|
||||||
|
* Add version number, -V and --version
|
||||||
|
* v0.95 - 2014-03-28
|
||||||
|
* rclone.org: website, docs and graphics
|
||||||
|
* drive: fix path parsing
|
||||||
|
* v0.94 - 2014-03-27
|
||||||
|
* Change remote format one last time
|
||||||
|
* GNU style flags
|
||||||
|
* v0.93 - 2014-03-16
|
||||||
|
* drive: store token in config file
|
||||||
|
* cross compile other versions
|
||||||
|
* set strict permissions on config file
|
||||||
|
* v0.92 - 2014-03-15
|
||||||
|
* Config fixes and --config option
|
||||||
|
* v0.91 - 2014-03-15
|
||||||
|
* Make config file
|
||||||
|
* v0.90 - 2013-06-27
|
||||||
|
* Project named rclone
|
||||||
|
* v0.00 - 2012-11-18
|
||||||
|
* Project started
|
||||||
|
|
||||||
|
|
||||||
Contact and support
|
Contact and support
|
||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
|
@ -1,26 +1,31 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
# This uses gox from https://github.com/mitchellh/gox
|
# This uses gox from https://github.com/mitchellh/gox
|
||||||
# Make sure you've run gox -build-toolchain
|
# Make sure you've run gox -build-toolchain
|
||||||
|
|
||||||
|
if [ "$1" == "" ]; then
|
||||||
|
echo "Syntax: $0 Version"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
VERSION="$1"
|
||||||
|
|
||||||
rm -rf build
|
rm -rf build
|
||||||
|
|
||||||
gox -output "build/{{.OS}}/{{.Arch}}/{{.Dir}}"
|
gox -output "build/{{.Dir}}-${VERSION}-{{.OS}}-{{.Arch}}/{{.Dir}}"
|
||||||
|
|
||||||
cat <<'#EOF' > build/README.txt
|
mv build/rclone-${VERSION}-darwin-amd64 build/rclone-${VERSION}-osx-amd64
|
||||||
This directory contains builds of the rclone program.
|
mv build/rclone-${VERSION}-darwin-386 build/rclone-${VERSION}-osx-386
|
||||||
|
|
||||||
Rclone is a program to transfer files to and from cloud storage
|
cd build
|
||||||
systems such as Google Drive, Amazon S3 and Swift (Rackspace
|
|
||||||
Cloudfiles).
|
|
||||||
|
|
||||||
See the project website here: https://github.com/ncw/rclone for more
|
for d in `ls`; do
|
||||||
details.
|
cp -a ../README.txt $d/
|
||||||
|
cp -a ../README.html $d/
|
||||||
|
cp -a ../rclone.1 $d/
|
||||||
|
zip -r9 $d.zip $d
|
||||||
|
rm -rf $d
|
||||||
|
done
|
||||||
|
|
||||||
The files in this directory are organised by OS and processor type
|
cd ..
|
||||||
|
|
||||||
#EOF
|
|
||||||
|
|
||||||
mv build/darwin build/osx
|
|
||||||
|
|
||||||
( cd build ; tree . >> README.txt )
|
|
||||||
|
@ -33,6 +33,6 @@ Links
|
|||||||
* [Home page](http://rclone.org/)
|
* [Home page](http://rclone.org/)
|
||||||
* [Github project page for source and more instructions](http://github.com/ncw/rclone)
|
* [Github project page for source and more instructions](http://github.com/ncw/rclone)
|
||||||
* <a href="https://plus.google.com/110609214444437761115" rel="publisher">Google+ page</a></li>
|
* <a href="https://plus.google.com/110609214444437761115" rel="publisher">Google+ page</a></li>
|
||||||
* [Downloads](http://www.craig-wood.com/nick/pub/rclone/)
|
* [Downloads](/downloads/)
|
||||||
|
|
||||||
rclone is brought to you by <a href="http://www.craig-wood.com/nick/">Nick Craig-Wood</a> <img src="http://www.craig-wood.com/nick/small/njcw.jpg" />
|
rclone is brought to you by <a href="http://www.craig-wood.com/nick/">Nick Craig-Wood</a> <img src="http://www.craig-wood.com/nick/small/njcw.jpg" />
|
||||||
|
@ -9,7 +9,7 @@ Install
|
|||||||
|
|
||||||
Rclone is a Go program and comes as a single binary file.
|
Rclone is a Go program and comes as a single binary file.
|
||||||
|
|
||||||
[Download the relevant binary.](http://www.craig-wood.com/nick/pub/rclone/)
|
[Download the relevant binary.](/downloads/)
|
||||||
|
|
||||||
Or alternatively if you have Go installed use
|
Or alternatively if you have Go installed use
|
||||||
|
|
||||||
|
35
docs/content/downloads.md
Normal file
35
docs/content/downloads.md
Normal file
@ -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/)
|
35
docs/content/downloads.md.in
Normal file
35
docs/content/downloads.md.in
Normal file
@ -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/)
|
@ -1,3 +1,9 @@
|
|||||||
|
---
|
||||||
|
title: "Local Filesystem"
|
||||||
|
description: "Rclone docs for the local filesystem"
|
||||||
|
date: "2014-03-19"
|
||||||
|
---
|
||||||
|
|
||||||
Local Filesystem
|
Local Filesystem
|
||||||
----------------
|
----------------
|
||||||
|
|
||||||
|
@ -12,12 +12,14 @@
|
|||||||
<div class="navbar-collapse collapse">
|
<div class="navbar-collapse collapse">
|
||||||
<ul class="nav navbar-nav">
|
<ul class="nav navbar-nav">
|
||||||
<li class="active"><a href="/">Home</a></li>
|
<li class="active"><a href="/">Home</a></li>
|
||||||
|
<li><a href="/downloads/">Downloads</a></li>
|
||||||
<li><a href="/docs/">Docs</a></li>
|
<li><a href="/docs/">Docs</a></li>
|
||||||
<li><a href="/contact/">Contact</a></li>
|
<li><a href="/contact/">Contact</a></li>
|
||||||
<li class="dropdown">
|
<li class="dropdown">
|
||||||
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Contents <b class="caret"></b></a>
|
||||||
<ul class="dropdown-menu">
|
<ul class="dropdown-menu">
|
||||||
<li><a href="/">About</a></li>
|
<li><a href="/">About</a></li>
|
||||||
|
<li><a href="/downloads/">Downloads</a></li>
|
||||||
<li><a href="/docs/">Docs</a></li>
|
<li><a href="/docs/">Docs</a></li>
|
||||||
<li class="divider"></li>
|
<li class="divider"></li>
|
||||||
<li class="dropdown-header">Storage systems</li>
|
<li class="dropdown-header">Storage systems</li>
|
||||||
|
19
notes.txt
19
notes.txt
@ -43,3 +43,22 @@ s3
|
|||||||
|
|
||||||
Bugs
|
Bugs
|
||||||
* Non verbose - not sure number transferred got counted up? CHECK
|
* Non verbose - not sure number transferred got counted up? CHECK
|
||||||
|
|
||||||
|
Making a release
|
||||||
|
* go build ./...
|
||||||
|
* cd rclonetest
|
||||||
|
* go build
|
||||||
|
* ./rclonetest memstore:
|
||||||
|
* ./rclonetest s3:
|
||||||
|
* ./rclonetest drive2:
|
||||||
|
* ./rclonetest /tmp/z
|
||||||
|
* cd ..
|
||||||
|
* make tag
|
||||||
|
* edit README.md Changelog
|
||||||
|
* git commit version.go rclonetest/version.go README.md docs/content/downloads.md
|
||||||
|
* make retag
|
||||||
|
* . ~/bin/go-cross
|
||||||
|
* make cross
|
||||||
|
* make upload
|
||||||
|
* make upload_website
|
||||||
|
* git push --tags
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
const Version = "v0.95"
|
const Version = "v0.96"
|
||||||
|
@ -1,3 +1,3 @@
|
|||||||
package main
|
package main
|
||||||
|
|
||||||
const Version = "v0.95"
|
const Version = "v0.96"
|
||||||
|
Loading…
Reference in New Issue
Block a user