Skip to content

Latest commit

 

History

History
executable file
·
19 lines (14 loc) · 394 Bytes

version.sh

File metadata and controls

executable file
·
19 lines (14 loc) · 394 Bytes
 
Jun 1, 2009
Jun 1, 2009
1
#!/bin/sh
Apr 9, 2009
Apr 9, 2009
2
Jun 13, 2012
Jun 13, 2012
3
v="v3.99"
Oct 2, 2008
Oct 2, 2008
4
Nov 3, 2011
Nov 3, 2011
5
if [ -d .git ] && tag=`git describe --tags`; then
Jun 3, 2009
Jun 3, 2009
6
v="$tag"
Oct 2, 2008
Oct 2, 2008
7
Jun 3, 2009
Jun 3, 2009
8
9
10
11
# Update the index from working tree first
git update-index --refresh --unmerged > /dev/null
# Does the index show uncommitted changes?
Apr 19, 2012
Apr 19, 2012
12
git diff-index --exit-code HEAD > /dev/null || \
Jun 3, 2009
Jun 3, 2009
13
v="$v"-dirty
Apr 18, 2009
Apr 18, 2009
14
else
Jun 3, 2009
Jun 3, 2009
15
v="$v"-unknown
Oct 2, 2008
Oct 2, 2008
16
17
fi
May 12, 2012
May 12, 2012
18
echo "const char *openconnect_version_str = \"$v\";" > $1
Jun 3, 2009
Jun 3, 2009
19
echo "New version: $v"