fixed: git version script was broken in dash. Thanks vdrfan for the tip.
authortheuni <theuni@svn>
Tue, 9 Feb 2010 17:17:14 +0000 (17:17 +0000)
committertheuni <theuni@svn>
Tue, 9 Feb 2010 17:17:14 +0000 (17:17 +0000)
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27603 568bbfeb-2a22-0410-94d2-cc84cf5bfa90

gitrev.sh

index 6fa091a..fd9d907 100755 (executable)
--- a/gitrev.sh
+++ b/gitrev.sh
@@ -2,13 +2,13 @@
 N=0
 R=""
 MAX=50
-while [[ $N -le $MAX && "x$R" == "x" ]]
+while [ $N -le $MAX ] && [ "x$R" = "x" ]
 do
   R=$(git log -1 --pretty=format:%b HEAD~$N | sed -e 's/.*@\([0-9]\+\) .*/\1/')
-  N=$[$N+1]
+  N=$(($N+1))
 done
-if [[ "x$R" != "x" ]]; then
-  if [[ $N > 1 ]]; then
+if [ "x$R" != "x" ]; then
+  if [ $N -gt 1 ]; then
     R=$R\+$((N-1))
   fi
   echo $R