3 # Copyright (C) 2004-2008 Freeciv team
5 # Version definition for Freeciv.
11 VERSION_LABEL="-beta0"
13 # 1) Development until MAJOR and MINOR version numbers are
14 # set to new release series:
15 # - IS_DEVEL_VERSION=1
16 # - IS_FREEZE_VERSION=0
19 # 2) Development from version number bump to first beta:
20 # - IS_DEVEL_VERSION=1
21 # - IS_FREEZE_VERSION=1
24 # 3) Development from first beta to first RC:
25 # - IS_DEVEL_VERSION=0
26 # - IS_FREEZE_VERSION=0
29 # 4) Stable, starting from first RC:
30 # - IS_DEVEL_VERSION=0
31 # - IS_FREEZE_VERSION=0
33 # (and update DEFAULT_FOLLOW_TAG to "stable", and also
34 # win32/installer/Makefile --follow-tag to "win32")
40 NEXT_STABLE_VERSION="2.6.0"
42 # 0 to disable display of release month until we can make better estimate
46 DEFAULT_FOLLOW_TAG=S2_6
48 # Freeciv network capstring: see documentation in common/capstr.c
50 # +Freeciv.Devel.YYYY.MMM.DD is the base capability string.
52 # - No new mandatory capabilities can be added to the release branch; doing
53 # so would break network capability of supposedly "compatible" releases.
55 # - Avoid adding a new mandatory capability to the development branch for
56 # as long as possible. We want to maintain network compatibility with
57 # the stable branch for as long as possible.
58 NETWORK_CAPSTRING_MANDATORY="+Freeciv-2.6-network"
59 NETWORK_CAPSTRING_OPTIONAL=""
61 FREECIV_DISTRIBUTOR=""
63 if test "x$FREECIV_LABEL_FORCE" != "x" ; then
64 VERSION_LABEL=$(echo $FREECIV_LABEL_FORCE | sed "s/<base>/$VERSION_LABEL/g")
67 if test x$VERSION_REVTYPE = xsvn && which svn > /dev/null ; then
68 VERSION_REV="r$(LANG=C svn info 2>/dev/null | grep "^Revision: " | sed 's/^Revision: //')"
69 elif test x$VERSION_REVTYPE = xgit && which git > /dev/null ; then
70 VERSION_REV="$(git rev-parse --short HEAD)"
74 if test "x$VERSION_REV" != "x" && test "x$VERSION_LABEL" != "x+" ; then
75 VERSION_REV="+${VERSION_REV}"
78 if test x$EMERGENCY_VERSION != x ; then
79 EMERG_PART=".${EMERGENCY_VERSION}"
82 if test x$VERSION_SCRIPT_SILENT != xyes ; then
83 VERSION=${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}${EMERG_PART}${VERSION_LABEL}${VERSION_REV}