btstack/doc/manual/update_getting_started.sh
2021-05-25 09:03:33 +02:00

17 lines
335 B
Bash
Executable File

#!/usr/bin/env sh
# get commit and tag
tag=`git tag --points-at HEAD`
commit=`git rev-parse --short HEAD`
# use tag if available
if [ -z "$tag" ]
then
version="Commit $commit"
else
version="Version $tag ($commit)"
fi
# create mkdocs.yml
sed -e "s|VERSION|$version|" btstack_gettingstarted.tex > latex/btstack_gettingstarted.tex