4 # Copyright (C) 2004-2008 Freeciv team
6 # Version definition for Freeciv.
14 # 1) Development until MAJOR and MINOR version numbers are
15 # set to new release series:
16 # - IS_DEVEL_VERSION=1
17 # - IS_FREEZE_VERSION=0
20 # 2) Development from version number bump to first beta:
21 # - IS_DEVEL_VERSION=1
22 # - IS_FREEZE_VERSION=1
25 # 3) Development from first beta to first RC:
26 # - IS_DEVEL_VERSION=0
27 # - IS_FREEZE_VERSION=0
30 # 4) Stable, starting from first RC:
31 # - IS_DEVEL_VERSION=0
32 # - IS_FREEZE_VERSION=0
34 # (and update DEFAULT_FOLLOW_TAG to "stable", and also
35 # win32/installer/Makefile --follow-tag to "win32")
41 NEXT_STABLE_VERSION="3.1.0"
43 # 0 to disable display of release month until we can make better estimate
47 DEFAULT_FOLLOW_TAG=S3_1
49 # Freeciv network capstring: see documentation in common/capstr.c
51 # +Freeciv.Devel.YYYY.MMM.DD is the base capability string.
53 # - No new mandatory capabilities can be added to the release branch; doing
54 # so would break network capability of supposedly "compatible" releases.
56 # - Avoid adding a new mandatory capability to the development branch for
57 # as long as possible. We want to maintain network compatibility with
58 # the stable branch for as long as possible.
59 NETWORK_CAPSTRING_MANDATORY="+Freeciv.Devel-3.1-2017.May.05"
60 NETWORK_CAPSTRING_OPTIONAL=""
62 FREECIV_DISTRIBUTOR=""
64 if test "x$FREECIV_LABEL_FORCE" != "x" ; then
65 VERSION_LABEL=$(echo $FREECIV_LABEL_FORCE | sed "s/<base>/$VERSION_LABEL/g")
68 if test x$VERSION_REVTYPE = xsvn && which svn > /dev/null ; then
69 VERSION_REV="r$(LANG=C svn info 2>/dev/null | grep "^Revision: " | sed 's/^Revision: //')"
70 elif test x$VERSION_REVTYPE = xgit && which git > /dev/null ; then
71 VERSION_REV="$(git rev-parse --short HEAD)"
75 if test "x$VERSION_REV" != "x" && test "x$VERSION_LABEL" != "x+" ; then
76 VERSION_REV="+${VERSION_REV}"
79 if test x$EMERGENCY_VERSION != x ; then
80 EMERG_PART=".${EMERGENCY_VERSION}"
83 if test x$VERSION_SCRIPT_SILENT != xyes ; then
84 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}${VERSION_REV}