tint2/get_version.sh
2015-04-24 18:45:25 +02:00

3 lines
166 B
Bash
Executable file

#!/bin/sh
git describe --exact-match 2>/dev/null || echo "0.11-git$(git show -s --pretty=format:%cI.%h | tr -d ':' | tr -d '-' | tr '.' '-' | sed 's/T[0-9\+]*//g')"