Versioning script
This commit is contained in:
parent
c05d0f9ddd
commit
e4fdafb12b
1 changed files with 13 additions and 0 deletions
13
set_version.sh
Normal file
13
set_version.sh
Normal 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"
|
Loading…
Add table
Reference in a new issue