tests: leverage pytest in utils_test
[git-cola.git] / extras / generate-build-version.sh
blob8cb8150b8f6dbbe497d659e5c1d48066989b3dfe
1 #!/bin/sh
3 GIT=${GIT:-git}
5 if "$GIT" version 2>&1 >/dev/null && test -e .git
6 then
7 BUILD_VERSION=$("$GIT" describe --first-parent) &&
8 echo '"""Generated build version"""' >cola/_build_version.py
9 echo "BUILD_VERSION = '$BUILD_VERSION'" >>cola/_build_version.py
12 exit 0