wavetable/tag.sh

17 lines
317 B
Bash
Raw Permalink Normal View History

2023-10-05 06:37:27 -07:00
#!/bin/bash -e
cd "$(dirname "$0")"
ROOT=$(pwd)
cd $ROOT
VER=`cat VERSION`
2026-01-10 13:52:42 -08:00
# Check that the version exists in the Changelist.txt
if ! grep -q "^${VER}:*$" Changelist.txt; then
echo "Error: Version $VER not found in Changelist.txt"
exit 1
fi
2023-10-05 06:37:27 -07:00
echo "Tagging [$VER]"
git tag "$VER" && git push origin "$VER"