Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed: git version script was broken on OSX - replace sed with awk

git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29994 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information...
commit 3582c2b9f5bdd95ab00f16a3382cff1657d5702f 1 parent fe40ff5
@beenje beenje authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  gitrev.sh
View
2  gitrev.sh
@@ -4,7 +4,7 @@ R=""
MAX=50
while [ $N -le $MAX ] && [ "x$R" = "x" ]
do
- R=$(git log -1 --pretty=format:%b HEAD~$N | sed -e 's/.*@\([0-9]\+\) .*/\1/')
+ R=$(git log -1 --pretty=format:%b HEAD~$N | awk '$2 ~ /@([0-9]+)$/ {sub(".*@", "", $2); print $2}')
N=$(($N+1))
done
if [ "x$R" != "x" ]; then
Please sign in to comment.
Something went wrong with that request. Please try again.