#!/bin/sh set -e if [ -d .git ] && [ "$(git tag)" ] ; then version="$(git describe --dirty)" elif [ -f version ] ; then version="$(cat version)" else version="unknown" fi echo "#define BABELD_VERSION \"$version\""