repo.or.cz
/
git
/
fastimport.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
git-fetch: auto-following tags.
[git/fastimport.git]
/
GIT-VERSION-GEN
blob
845b9dce6eaab80d011370f701c254a051027cc2
1
#!/bin/sh
2
3
GVF
=
GIT-VERSION-FILE
4
5
VN
=
$
(
git-describe
--abbrev
=
4
HEAD
2
>/
dev
/
null
)
|| VN
=
v1.0.GIT
6
VN
=
$
(
expr
"
$VN
"
:
v
'\(.*\)'
)
7
if
test -r
$GVF
8
then
9
VC
=
$
(
sed
-e
's/^GIT_VERSION = //'
<
$GVF
)
10
else
11
VC
=
unset
12
fi
13
test
"
$VN
"
=
"
$VC
"
||
{
14
echo
>&
2
"GIT_VERSION =
$VN
"
15
echo
"GIT_VERSION =
$VN
"
>
$GVF
16
}
17
18