Skip to content
Newer
Older
100755 16 lines (15 sloc) 278 Bytes
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored Feb 6, 2010
1 #!/bin/sh
2 N=0
3 R=""
134e8ee fixed: whoops, might want to actually look back a few commits
theuni authored Feb 6, 2010
4 MAX=50
7fbd664 fixed: git version script was broken in dash. Thanks vdrfan for the tip.
theuni authored Feb 9, 2010
5 while [ $N -le $MAX ] && [ "x$R" = "x" ]
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored Feb 6, 2010
6 do
3582c2b @beenje fixed: git version script was broken on OSX - replace sed with awk
beenje authored May 10, 2010
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 Feb 9, 2010
8 N=$(($N+1))
340b36d fixed: configure would hang forever when using a pure git repo
theuni authored Feb 6, 2010
9 done
7fbd664 fixed: git version script was broken in dash. Thanks vdrfan for the tip.
theuni authored Feb 9, 2010
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 Feb 6, 2010
12 R=$R\+$((N-1))
13 fi
14 echo $R
15 fi
Something went wrong with that request. Please try again.