Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100755 16 lines (15 sloc) 0.278 kb
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored
1 #!/bin/sh
2 N=0
3 R=""
134e8ee fixed: whoops, might want to actually look back a few commits
theuni authored
4 MAX=50
7fbd664 fixed: git version script was broken in dash. Thanks vdrfan for the tip.
theuni authored
5 while [ $N -le $MAX ] && [ "x$R" = "x" ]
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored
6 do
3582c2b @beenje fixed: git version script was broken on OSX - replace sed with awk
beenje authored
7 R=$(git log -1 --pretty=format:%b HEAD~$N | awk '$2 ~ /@([0-9]+)$/ {sub(".*@", "", $2); print $2}')
7fbd664 fixed: git version script was broken in dash. Thanks vdrfan for the tip.
theuni authored
8 N=$(($N+1))
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored
9 done
7fbd664 fixed: git version script was broken in dash. Thanks vdrfan for the tip.
theuni authored
10 if [ "x$R" != "x" ]; then
11 if [ $N -gt 1 ]; then
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored
12 R=$R\+$((N-1))
13 fi
14 echo $R
15 fi
Something went wrong with that request. Please try again.