From fec3661fe1db744911dfced4fa34fbb04b0200d3 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Sat, 15 Mar 2014 17:40:35 +0000 Subject: [PATCH] Script to cross compile rclone --- cross-compile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100755 cross-compile diff --git a/cross-compile b/cross-compile new file mode 100755 index 000000000..d17da54ef --- /dev/null +++ b/cross-compile @@ -0,0 +1,28 @@ +#!/bin/sh + +# 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}}" + +cat <<'#EOF' > build/README.txt +This directory contains builds of the rclone program. + +Rclone a program designed to stress test your disks and find +failures in them. + +Use it to soak test your new disks / memory cards / USB sticks before +trusting your valuable data to it. + +See the project website here: https://github.com/ncw/rclone for +more details. + +The files in this directory are organised by OS and processor type + +#EOF + +mv build/darwin build/osx + +( cd build ; tree . >> README.txt )