8 if [ -f ..
/.tarball-version
]
10 echo "#define GIT_VERSION \"lib$(cat ../.tarball-version)\"" > "$file_to_write"
14 if [ "${APPVEYOR_BUILD_VERSION}" = "" ];
16 echo build not
in appveyor
18 git tag uuu_
${APPVEYOR_BUILD_VERSION}
21 # Test if we are in a repo
22 if [ "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ];
25 # Get the version of the last commit of the repo
26 version
=`git describe --tags --long`
27 echo "#define GIT_VERSION \"lib$version\"" > $file_to_write