mirror of
git://git.code.sf.net/p/sbcl/sbcl
synced 2026-09-10 07:26:40 -04:00
Update to work with non-bash versions of expr.
This commit is contained in:
parent
7d407220e1
commit
9ae145dfb3
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue