forked from Uninett/fwbuilder
-
Notifications
You must be signed in to change notification settings - Fork 1
/
VERSION
34 lines (26 loc) · 829 Bytes
/
VERSION
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#-*- mode: shell-script; tab-width: 4; -*-
# Data format version
FWBUILDER_XML_VERSION=24
# Static version number
FWB_MAJOR_VERSION=5
FWB_MINOR_VERSION=3
FWB_MICRO_VERSION=6
FWB_QUALIFIER_VERSION=
VERSION="$FWB_MAJOR_VERSION.$FWB_MINOR_VERSION.$FWB_MICRO_VERSION"
if [ -n "${FWB_QUALIFIER_VERSION}" ]; then
VERSION="$VERSION-$FWB_QUALIFIER_VERSION"
fi
GENERATION="$FWB_MAJOR_VERSION.$FWB_MINOR_VERSION"
# Git may generate version info for us
# May be overridden by setting NO_GIT_VER environment variable
if [ ! -n "${NO_GIT_VER}" ]; then
GIT_DIRTY_FLAG="--dirty"
if [ -n "${NO_GIT_DIRTY}" ]; then
GIT_DIRTY_FLAG=""
fi
GIT_VERSION=`git describe --tags ${GIT_DIRTY_FLAG} --always`
if [ -n "${GIT_VERSION}" ]; then
VERSION=${GIT_VERSION#v}
GENERATION=${VERSION%.*}
fi
fi