aboutsummaryrefslogtreecommitdiff
path: root/gitrev.sh
diff options
context:
space:
mode:
authorbeenje <beenje@svn>2010-05-10 20:54:18 +0000
committerbeenje <beenje@svn>2010-05-10 20:54:18 +0000
commit3582c2b9f5bdd95ab00f16a3382cff1657d5702f (patch)
tree3d8c988b1729830b6d19db3729d49569d3c6ae41 /gitrev.sh
parentfe40ff5fed0e3b7e1761686831ff9ce0cf6c6912 (diff)
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
Diffstat (limited to 'gitrev.sh')
-rwxr-xr-xgitrev.sh2
1 files changed, 1 insertions, 1 deletions
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