README.md: fix build status badge
[beanstalkd.git] / vers.sh
blob8e829d8984853551603ea983cd58ad426170bc17
1 #!/bin/sh
3 if git describe >/dev/null 2>&1
4 then
5 git describe --tags --match=dev* | sed s/^dev// | tr - + | tr -d '\n'
6 if ! git diff --quiet HEAD
7 then printf +mod
8 fi
9 else
10 printf unknown