forked from freeciv/freeciv
-
Notifications
You must be signed in to change notification settings - Fork 0
/
fc_version
executable file
·86 lines (72 loc) · 2.1 KB
/
fc_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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
#/bin/sh
#
# Copyright (C) 2004-2008 Freeciv team
# Version definition for Freeciv.
MAJOR_VERSION="3"
MINOR_VERSION="1"
PATCH_VERSION="90"
EMERGENCY_VERSION="6"
VERSION_LABEL="-dev"
# 1) Development until MAJOR and MINOR version numbers are
# set to new release series:
# - IS_DEVEL_VERSION=1
# - IS_FREEZE_VERSION=0
# - IS_BETA_VERSION=0
#
# 2) Development from version number bump to entering beta mode:
# - IS_DEVEL_VERSION=1
# - IS_FREEZE_VERSION=1
# - IS_BETA_VERSION=0
#
# 3) Development during beta mode, starting latest from beta1,
# until first RC:
# - IS_DEVEL_VERSION=0
# - IS_FREEZE_VERSION=0
# - IS_BETA_VERSION=1
#
# 4) Stable, starting from first RC:
# - IS_DEVEL_VERSION=0
# - IS_FREEZE_VERSION=0
# - IS_BETA_VERSION=0
#
# 5) Final.
# Update DEFAULT_FOLLOW_TAG to "stable", and also
# windows/installer_msys2/Makefile --with-followtag to "windows"
IS_DEVEL_VERSION=1
IS_FREEZE_VERSION=0
IS_BETA_VERSION=0
NEXT_STABLE_VERSION="3.2.0"
# 0 to disable display of release month until we can make better estimate
RELEASE_MONTH=0
DATASUBDIR=dev
DEFAULT_FOLLOW_TAG=S3_2
# Freeciv network capstring: see documentation in common/capstr.c
#
# +Freeciv.Devel-V.V-YYYY.MMM.DD is the base capability string.
#
# - No new mandatory capabilities can be added to the release branch; doing
# so would break network capability of supposedly "compatible" releases.
#
NETWORK_CAPSTRING="+Freeciv.Devel-3.2-2021.Oct.22"
FREECIV_DISTRIBUTOR=""
if test "x$FREECIV_LABEL_FORCE" != "x" ; then
VERSION_LABEL=$(echo $FREECIV_LABEL_FORCE | sed "s/<base>/$VERSION_LABEL/g")
fi
if test x$VERSION_REVTYPE = xgit && command -v git > /dev/null ; then
VERSION_REV="$(git rev-parse --short HEAD)"
else
VERSION_REV=""
fi
if test "x$VERSION_REV" != "x" ; then
case "x$VERSION_LABEL" in
x*+) ;;
*) VERSION_REV="+${VERSION_REV}" ;;
esac
fi
if test x$EMERGENCY_VERSION != x ; then
EMERG_PART=".${EMERGENCY_VERSION}"
fi
VERSION_STRING=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}
if test x$VERSION_SCRIPT_SILENT != xyes ; then
echo ${VERSION_STRING}${VERSION_REV}
fi