Public Access
several small fixes:
- systemmodule ir und res aufgenommen - Version auf Major.Minor reduziert - reihenfolge der Module fixiert
This commit is contained in:
@@ -0,0 +1,53 @@
|
||||
#!/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
|
||||
cd $WORKDIR
|
||||
|
||||
echo
|
||||
echo
|
||||
echo "======================================================"
|
||||
echo "starte Auswertung"
|
||||
echo "======================================================"
|
||||
|
||||
python3 compare.py
|
||||
|
||||
echo
|
||||
echo "Fertig."
|
||||
Reference in New Issue
Block a user