ImbusBinds/set_version.sh

14 lines
223 B
Bash
Raw Normal View History

2025-02-22 09:43:44 +01:00
#!/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"