#!/usr/bin/env bash set -eu compare=True while [ "$#" -eq 1 ] do case "$1" in --no-compare) compare=False ;; *) echo "$0: Illegal option: $1" 1>&2 exit 1 ;; esac shift done hn=$(set -eu; hostname) rm -rf save-dir-* for record in $(../../this-interpreter --variety minimal-a; ../../this-interpreter --variety minimal-b) do pyver=$(echo "$record" | awk -F'%' ' { print $1 }') interp=$(echo "$record" | awk -F'%' ' { print $2 }') mkdir -p "save-dir-$pyver" find to-be-saved -name .svn -prune -o -print0 | \ "$interp" ../../bin/backshift \ --save-directory "save-dir-$pyver" \ --backup \ --hostname $hn \ --subset test \ --init-savedir done if [ "$compare" = True ] then ../compare-data save-dir-* fi