1#!/usr/bin/env sh 2 3# get commit and tag 4tag=`git tag --points-at HEAD` 5commit=`git rev-parse --short HEAD` 6 7# use tag if available 8if [ -z "$tag" ] 9then 10 version=$commit 11else 12 version=$tag 13fi 14 15# create mkdocs.yml 16sed -e "s|VERSION|$version|" btstack_gettingstarted.tex > latex/btstack_gettingstarted.tex 17