Skip to content
This repository has been archived by the owner on Sep 30, 2018. It is now read-only.

Commit

Permalink
fixed: git version script was broken on OSX - replace sed with awk
Browse files Browse the repository at this point in the history
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@29994 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
  • Loading branch information
beenje committed May 10, 2010
1 parent fe40ff5 commit 3582c2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gitrev.sh
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ R=""
MAX=50 MAX=50
while [ $N -le $MAX ] && [ "x$R" = "x" ] while [ $N -le $MAX ] && [ "x$R" = "x" ]
do 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)) N=$(($N+1))
done done
if [ "x$R" != "x" ]; then if [ "x$R" != "x" ]; then
Expand Down

0 comments on commit 3582c2b

Please sign in to comment.