aboutsummaryrefslogtreecommitdiff
path: root/gitrev.sh
diff options
context:
space:
mode:
authortheuni <theuni@svn>2010-02-09 17:17:14 +0000
committertheuni <theuni@svn>2010-02-09 17:17:14 +0000
commit7fbd6647bc1b2d1b97ecb1b2b683c3231167a98c (patch)
treeaac7d92b77cd743237d1114c764aa7244b13bbb0 /gitrev.sh
parent2ac9cda38f38dc3fa51e82fe00ec9db67bb5659c (diff)
fixed: git version script was broken in dash. Thanks vdrfan for the tip.
git-svn-id: https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk@27603 568bbfeb-2a22-0410-94d2-cc84cf5bfa90
Diffstat (limited to 'gitrev.sh')
-rwxr-xr-xgitrev.sh8
1 files changed, 4 insertions, 4 deletions
diff --git a/gitrev.sh b/gitrev.sh
index 6fa091a668..fd9d907e4e 100755
--- 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