diff options
author | beenje <beenje@svn> | 2010-05-10 20:54:18 +0000 |
---|---|---|
committer | beenje <beenje@svn> | 2010-05-10 20:54:18 +0000 |
commit | 3582c2b9f5bdd95ab00f16a3382cff1657d5702f (patch) | |
tree | 3d8c988b1729830b6d19db3729d49569d3c6ae41 /gitrev.sh | |
parent | fe40ff5fed0e3b7e1761686831ff9ce0cf6c6912 (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-x | gitrev.sh | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |