## @file
## @brief Generate the Geeqie version number
##
-## This script is called from configure.ac
+## This script is called from meson.build
##
## If the current branch is "master" a revison number is generated of the form:
## <n.m>+git<date of last commit>-<last commit hash>
## Geeqie <n.m[.p]>
##
-if [ -d .git ]
+if [ -d .git ] && [ -x "$(command -v git)" ]
then
branch=$(git rev-parse --abbrev-ref HEAD)