From 3582c2b9f5bdd95ab00f16a3382cff1657d5702f Mon Sep 17 00:00:00 2001 From: beenje Date: Mon, 10 May 2010 20:54:18 +0000 Subject: 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 --- gitrev.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitrev.sh') diff --git a/gitrev.sh b/gitrev.sh index fd9d907e4e..996e384685 100755 --- a/gitrev.sh +++ b/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 -- cgit v1.2.3