spectrwm/buildver.sh

8 lines
154 B
Bash
Raw Normal View History

#!/bin/sh
CURDIR=$(dirname $0)
if [ -d "$CURDIR/.git" ]; then
cd "$CURDIR"
2014-11-18 16:24:27 -06:00
echo $(git describe --abbrev=0 --tags)-$(git rev-parse HEAD | tail -c 9)
fi