File: fc_version

package info (click to toggle)
freeciv 2.6.2-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 212,508 kB
  • sloc: ansic: 443,831; cpp: 29,541; sh: 7,982; makefile: 7,886; python: 1,933; xml: 945
file content (87 lines) | stat: -rwxr-xr-x 2,346 bytes parent folder | download | duplicates (2)
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
87
#/bin/sh
#
#  Copyright (C) 2004-2008 Freeciv team

# Version definition for Freeciv.

MAJOR_VERSION="2"
MINOR_VERSION="6"
PATCH_VERSION="2"
EMERGENCY_VERSION=""
VERSION_LABEL=""

# 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 first beta:
#   - IS_DEVEL_VERSION=1
#   - IS_FREEZE_VERSION=1
#   - IS_BETA_VERSION=0
#
# 3) Development from first beta to 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
# (and update DEFAULT_FOLLOW_TAG to "stable", and also
# win32/installer/Makefile and win32/installer_msys2/Makefile
# --with-followtag to "win32")

IS_DEVEL_VERSION=0
IS_FREEZE_VERSION=0
IS_BETA_VERSION=0

NEXT_STABLE_VERSION="2.6.0"

# 0 to disable display of release month until we can make better estimate
RELEASE_MONTH=7

DATASUBDIR=2.6
DEFAULT_FOLLOW_TAG=stable

# Freeciv network capstring: see documentation in common/capstr.c
#
# +Freeciv.Devel.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.
#
#   - Avoid adding a new mandatory capability to the development branch for
#     as long as possible.  We want to maintain network compatibility with
#     the stable branch for as long as possible.
NETWORK_CAPSTRING_MANDATORY="+Freeciv-2.6-network"
NETWORK_CAPSTRING_OPTIONAL="techloss_forgiveness"

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 && which 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

if test x$VERSION_SCRIPT_SILENT != xyes ; then
  VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}${VERSION_REV}
  echo ${VERSION}
fi