Skip to content

Commit 3582c2b

Browse files
author
beenje
committed
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
1 parent fe40ff5 commit 3582c2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gitrev.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ R=""
44
MAX=50
55
while [ $N -le $MAX ] && [ "x$R" = "x" ]
66
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}')
88
N=$(($N+1))
99
done
1010
if [ "x$R" != "x" ]; then

0 commit comments

Comments
 (0)