mirror of
https://github.com/rclone/rclone.git
synced 2024-11-25 01:44:41 +01:00
build: make tidy-beta for removing old beta releases
This commit is contained in:
parent
6396872d75
commit
b0dd218fea
@ -23,6 +23,7 @@ Making a release
|
||||
* make upload_website
|
||||
* make upload_github
|
||||
* make startdev
|
||||
* run bin/tidy-beta <previous version> to tidy old betas
|
||||
* # announce with forum post, twitter post, G+ post
|
||||
|
||||
Early in the next release cycle update the vendored dependencies
|
||||
|
17
bin/tidy-beta
Executable file
17
bin/tidy-beta
Executable file
@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
# Use this script after a release to tidy the betas
|
||||
|
||||
version="$1"
|
||||
if [ "$version" = "" ]; then
|
||||
echo "Syntax: $0 <version> [delete]"
|
||||
exit 1
|
||||
fi
|
||||
dry_run="--dry-run"
|
||||
if [ "$2" = "delete" ]; then
|
||||
dry_run=""
|
||||
else
|
||||
echo "Running in --dry-run mode"
|
||||
echo "Use '$0 $version delete' to actually delete files"
|
||||
fi
|
||||
|
||||
rclone ${dry_run} --fast-list -P --checkers 16 --transfers 16 delete --include "**/${version}**" memstore:beta-rclone-org
|
Loading…
Reference in New Issue
Block a user