repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
adjust struct timespec definition to be time64-ready
[musl.git]
/
tools
/
version.sh
blob
f1cc5948fa1ef11d665ef00530133acf0423a98e
1
#!/bin/sh
2
3
if
test -d
.git
;
then
4
if
type
git
>/
dev
/
null
2
>&
1
;
then
5
git describe
--tags --match
'v[0-9]*'
2
>/
dev
/
null \
6
|
sed
-e
's/^v//'
-e
's/-/-git-/'
7
else
8
sed
's/$/-git/'
<
VERSION
9
fi
10
else
11
cat
VERSION
12
fi