Getting to the way it's supposed to be!

This commit is contained in:
2024-10-12 00:43:51 +02:00
parent 84729f9d27
commit 8f2dad9cec
2663 changed files with 540071 additions and 14 deletions

View File

@@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -Eeuo pipefail
TAG=$( set -x; python3 misc/get_header_tag.py )
echo "Header version tag: $TAG"
if [[ "$TAG" == v*.*.0 ]]; then
echo "No older header available"
elif [[ "$TAG" == v*.*.* ]]; then
OLD_TAG="${TAG%.*}".0
OLD_COMMIT=$( set -x; git rev-list -n 1 "$OLD_TAG" )
echo "Downgrading ufbx.h to tag $OLD_TAG, commit $OLD_COMMIT"
( set -x; git checkout "$OLD_TAG" -- ufbx.h )
else
echo "Error: Malformed tag \"$TAG\""
exit 1
fi