From 65163d414b49af7a7c61bd076c7bfc784931a056 Mon Sep 17 00:00:00 2001 From: Tony Theodore Date: Wed, 6 Jan 2016 14:40:40 +1100 Subject: add selected plugins to backup download closes #1135 --- tools/s3-fetch-and-sync | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tools/s3-fetch-and-sync b/tools/s3-fetch-and-sync index fc4ea7e..3972c88 100755 --- a/tools/s3-fetch-and-sync +++ b/tools/s3-fetch-and-sync @@ -21,6 +21,10 @@ # Useful to prevent the same issue from being filed multiple times file_issue=true +# List of plugin dirs to include in downloads +# Can't include all subdirs since some affect versions +plugin_dirs=`echo plugins/{apps,luarocks,native,tcl.tk}` + cd ~/mxe && git pull # Test downloading without falling back to S3 download server. @@ -28,6 +32,7 @@ cd ~/mxe && git pull if ! ( \ cd ~/mxe && \ make download -k MXE_NO_BACKUP_DL=true MXE_VERBOSE=true \ + MXE_PLUGIN_DIRS="$plugin_dirs" \ 2>&1 >tmp-download-log \ ) && $file_issue; then # If one or more download process fails, upload log to sprunge.us (a @@ -39,6 +44,6 @@ if ! ( \ EDITOR=~/mxe/tools/fake-editor ghi open -L bug -- mxe/mxe fi -cd ~/mxe && make clean-junk +cd ~/mxe && make clean-junk MXE_PLUGIN_DIRS="$plugin_dirs" s3cmd sync --acl-public ~/mxe/pkg/* s3://mxe-pkg/ rm -f ~/mxe/tmp-download-log ~/mxe/tmp-url -- cgit v0.12