diff --git a/tools/python3-first/propose-wheel.sh b/tools/python3-first/propose-wheel.sh new file mode 100755 index 0000000..3b3e755 --- /dev/null +++ b/tools/python3-first/propose-wheel.sh @@ -0,0 +1,62 @@ +#!/bin/bash + +bindir=$(dirname $0) +source $bindir/functions + +function usage { + echo "do_team.sh WORKDIR TEAM" +} + +workdir=$1 +team="$2" + +if [ -z "$workdir" ]; then + usage + exit 1 +fi + +if [ -z "$team" ]; then + usage + exit 1 +fi + +out_dir=$(get_team_dir "$workdir" "$team") + +log_output "$out_dir" propose + +enable_tox + +function list_changes { + origin=origin/master + for repo in $(cat master) + do + (cd $repo && + git log --oneline --pretty=format:"%h %s $repo $branch%n" $origin..) + done +} + +cd "$out_dir" + +echo +list_changes + +nchanges=$(list_changes 2>/dev/null | grep -v "^$" | wc -l) + +echo +echo "About to propose $nchanges changes" + +echo +echo "Press enter to continue" +read ignoreme + +branches="master $(list_stable_branches $repo)" + +target=master + +for repo in $(cat $target) +do + echo + echo $repo $branch + (cd $repo && + git review -y -t python3-first $target) +done