projects
/
sbcl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d40722
)
Update to work with non-bash versions of expr.
author
Jim Wise
<jwise@draga.com>
Mon, 10 Oct 2011 14:17:08 +0000
(10:17 -0400)
committer
Jim Wise
<jwise@draga.com>
Mon, 24 Oct 2011 13:24:30 +0000
(09:24 -0400)
generate-version.sh
patch
|
blob
|
history
diff --git
a/generate-version.sh
b/generate-version.sh
index
ff7ea49
..
a01ae7d
100755
(executable)
--- a/
generate-version.sh
+++ b/
generate-version.sh
@@
-26,7
+26,7
@@
generate_version() {
fi
# Build it.
version_head=`git rev-parse HEAD`
- if expr "`cat .git/HEAD`" : "ref: refs/heads/.*" > /dev/null 2>&1
+ if `cat .git/HEAD` | grep -q "ref: refs/heads/.*" > /dev/null 2>&1
then
version_branchname=`cut -d / -f 3- < .git/HEAD`
else