repo.or.cz
/
git-cola.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
decorators: restore handling for errno.EINVAL
[git-cola.git]
/
extras
/
generate-build-version.sh
blob
8cb8150b8f6dbbe497d659e5c1d48066989b3dfe
1
#!/bin/sh
2
3
GIT
=
${GIT:-git}
4
5
if
"
$GIT
"
version
2
>&
1
>/
dev
/
null
&&
test -e
.git
6
then
7
BUILD_VERSION
=
$
(
"
$GIT
"
describe
--first-parent
) &&
8
echo
'"""Generated build version"""'
>
col
a
/
_build_version.py
9
echo
"BUILD_VERSION = '
$BUILD_VERSION
'"
>>
col
a
/
_build_version.py
10
fi
11
12
exit
0