Summary Files Commits Branches @commit @diff @stats
path: root / version.sh
blob: 9f6573cefed20f194f99d28f55b66e672f9e4c70 (plain) (blame)
1
2
3
4
5
6
7
8
9
#!/bin/sh
echo -n '0.3.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