[Subtitles] Partial fix for text/border color gap
[xbmc.git] / tools / darwin / packaging / gitrev-posix
blobdd593f19172cf0997cd89df633cfac17a9d13a77
1 #!/bin/bash
2 #Print the git revision in the form yyyymmdd-abc1234
3 #Note: yyyymmdd is the date that abc1234 was committed and not today's date.
5 which git &>/dev/null
6 if [ "$?" != "0" ]; then
7 echo "Unknown"
8 exit 1
9 fi
10 git --no-pager log --abbrev=7 -n 1 --pretty=format:"%h %ci" HEAD | awk '{gsub("-", "");print $2"-"$1}' 2>/dev/null
11 if [ "$?" != "0" ]; then
12 echo "Unknown"
13 exit 1