Files

54 lines
934 B
Bash
Raw Permalink Normal View History

2026-08-07 22:27:49 +02:00
#!/bin/bash
set -e
TRYTON_REPO="$HOME/tmp/tryton"
WORKDIR="$HOME/code/tryton-db-migration"
EXTRACTOR="$WORKDIR/extract.py"
START='5.0'
END='8.0'
cd "$TRYTON_REPO"
VERSIONS=$(
git branch -r |
sed 's|origin/||; s|^[[:space:]]*||' |
grep -E '^[0-9]+\.[0-9]+$' |
sort -V |
awk -v start="$START" -v end="$END" '
$0 >= start && $0 <= end
'
)
#
echo $VERSIONS
for VERSION in $VERSIONS
do
echo
echo "======================================================"
echo "Version $VERSION"
echo "======================================================"
git switch "$VERSION"
python3 "$EXTRACTOR" --repo $TRYTON_REPO --output $WORKDIR/data
done
git switch $END
2026-08-08 01:29:43 +02:00
cd $WORKDIR
echo
echo
echo "======================================================"
echo "starte Auswertung"
echo "======================================================"
python3 compare.py
2026-08-07 22:27:49 +02:00
echo
echo "Fertig."