Skip to content

"rsync for cloud storage" - Google Drive, S3, Dropbox, Backblaze B2, One Drive, Swift, Hubic, Wasabi, Google Cloud Storage, Azure Blob, Azure Files, Yandex Files

Include git-log.txt into beta releases - fixes #1047

Nick Craig-Wood86cc9f3dfbbc
diff --git a/Makefile b/Makefile
index 09c4c0dd2..68304e04b 100644
--- a/Makefile
+++ b/Makefile
@@ -106,7 +106,8 @@ beta:
@echo Beta release ready at http://pub.rclone.org/$(TAG)%CE%B2/
travis_beta:
- go run bin/cross-compile.go -release latest-beta $(TAG)β
+ git log $(LAST_TAG).. > /tmp/git-log.txt
+ go run bin/cross-compile.go -release beta-latest -git-log /tmp/git-log.txt $(TAG)β
rclone --config bin/travis.rclone.conf -v copy build/ memstore:beta-rclone-org/$(TAG)
@echo Beta release ready at $(BETA_URL)
diff --git a/bin/cross-compile.go b/bin/cross-compile.go
index febae5a6b..ae701ba46 100644
--- a/bin/cross-compile.go
+++ b/bin/cross-compile.go
@@ -21,6 +21,7 @@ var (
debug = flag.Bool("d", false, "Print commands instead of running them.")
parallel = flag.Int("parallel", runtime.NumCPU(), "Number of commands to run in parallel.")
copyAs = flag.String("release", "", "Make copies of the releases with this name")
+ gitLog = flag.String("git-log", "", "git log to include as well")
)
// GOOS/GOARCH pairs we build for
@@ -98,6 +99,9 @@ func compileArch(version, goos, goarch, dir string) {
run("cp", "-a", "../MANUAL.txt", filepath.Join(dir, "README.txt"))
run("cp", "-a", "../MANUAL.html", filepath.Join(dir, "README.html"))
run("cp", "-a", "../rclone.1", dir)
+ if *gitLog != "" {
+ run("cp", "-a", *gitLog, dir)
+ }
zip := dir + ".zip"
run("zip", "-r9", zip, dir)
if *copyAs != "" {