Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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 authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  gitrev.sh
2  gitrev.sh
@@ -4,7 +4,7 @@ R=""
4 4 MAX=50
5 5 while [ $N -le $MAX ] && [ "x$R" = "x" ]
6 6 do
7   - R=$(git log -1 --pretty=format:%b HEAD~$N | sed -e 's/.*@\([0-9]\+\) .*/\1/')
  7 + R=$(git log -1 --pretty=format:%b HEAD~$N | awk '$2 ~ /@([0-9]+)$/ {sub(".*@", "", $2); print $2}')
8 8 N=$(($N+1))
9 9 done
10 10 if [ "x$R" != "x" ]; then

0 comments on commit 3582c2b

Please sign in to comment.
Something went wrong with that request. Please try again.