5 if [ -d .git ] && tag=`git describe --tags`; then
8 # Update the index from working tree first
9 git update-index --refresh --unmerged > /dev/null
11 # Does the index show uncommitted changes?
12 git diff-index --exit-code HEAD > /dev/null || \
18 echo "char openconnect_version[] = \"$v\";" > $1
19 echo "New version: $v"