Summary Files Commits Branches @commit @diff @stats
path: root / version.sh
blob: a87283e1bd799f0e90dd8de49b88ff21cc1a3f05 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
echo -n '0.4.0'
hash=$(git --git-dir="$(dirname $0)/.git" rev-parse --short HEAD 2>/dev/null)

if [ -n "$hash" ]
then
	printf '+g%s' "$hash"
fi
echo