Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
cmucl
cmucl
Commits
803a8bd2
Commit
803a8bd2
authored
Oct 08, 2011
by
Raymond Toy
Browse files
Use git describe instead of git log to get a version.
parent
15db498a
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/build.sh
View file @
803a8bd2
...
...
@@ -43,7 +43,7 @@ version=20b
SRCDIR
=
src
TOOLDIR
=
$SRCDIR
/tools
VERSION
=
"
`
date
'+%Y-%m-%d %H:%M:%S'
`
"
GIT_HASH
=
"
`
(
cd
src
;
git
log
-1
--pretty
=
format:%t
2>/dev/null
)
`
"
GIT_HASH
=
"
`
(
cd
src
;
git
describe
--dirty
2>/dev/null
)
`
"
# Add the tree hash to the version
VERSION
=
"
$VERSION
$GIT_HASH
"
BASE
=
build
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment