btstack/doc/manual/update_mkdocs_yml.sh
2020-10-08 09:58:00 +02:00

17 lines
277 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
else
version=$tag
fi
# create mkdocs.yml
sed -e "s|VERSION|$version|" mkdocs-template.yml > mkdocs.yml