Versioning script

This commit is contained in:
Imbus 2025-02-22 09:43:44 +01:00
parent c05d0f9ddd
commit e4fdafb12b

13
set_version.sh Normal file
View file

@ -0,0 +1,13 @@
#!/bin/bash
if [[ $# -ne 1 ]]; then
echo "Usage: $0 <semver>"
exit 1
fi
SEMVER="$1"
# Update all *.toc files
sed -i -E "s/^(## Version: ).*/\1$SEMVER/" ./*.toc
echo "Updated all .toc files with version $SEMVER"