aboutsummaryrefslogtreecommitdiff
path: root/bpkg/bpkg-version
diff options
context:
space:
mode:
authorKaren Arutyunov <karen@codesynthesis.com>2017-04-28 16:20:35 +0300
committerKaren Arutyunov <karen@codesynthesis.com>2017-04-28 16:20:35 +0300
commit67ab77401f4b1c4580b7ce54a783843e31a55ebb (patch)
tree5019b38ca687ddff583cdf6b7709970538a5586f /bpkg/bpkg-version
parentba7cfc928eac37c6aa82351f8bde76abd0368835 (diff)
Switch to version module
Diffstat (limited to 'bpkg/bpkg-version')
-rw-r--r--bpkg/bpkg-version81
1 files changed, 0 insertions, 81 deletions
diff --git a/bpkg/bpkg-version b/bpkg/bpkg-version
deleted file mode 100644
index 05a93c1..0000000
--- a/bpkg/bpkg-version
+++ /dev/null
@@ -1,81 +0,0 @@
-// file : bpkg/bpkg-version -*- C++ -*-
-// copyright : Copyright (c) 2014-2017 Code Synthesis Ltd
-// license : MIT; see accompanying LICENSE file
-
-#ifndef BPKG_VERSION // Note: using the version macro itself.
-
-#include <butl/version> // LIBBUTL_VERSION
-#include <bpkg/version> // LIBBPKG_VERSION
-
-// Version format is AABBCCDD where
-//
-// AA - major version number
-// BB - minor version number
-// CC - bugfix version number
-// DD - alpha / beta (DD + 50) version number
-//
-// When DD is not 00, 1 is subtracted from AABBCC. For example:
-//
-// Version AABBCCDD
-// 2.0.0 02000000
-// 2.1.0 02010000
-// 2.1.1 02010100
-// 2.2.0-a1 02019901
-// 3.0.0-b2 02999952
-//
-#define BPKG_VERSION 49901
-#define BPKG_VERSION_STR "0.5.0-a1"
-
-// Generally, we expect minor versions to be source code backwards-
-// compatible, thought we might have a minimum version requirement.
-//
-// Note: does not apply during early development.
-//
-#if LIBBUTL_VERSION != 49901
-# error incompatible libbutl version
-#endif
-
-#if LIBBPKG_VERSION != 49901
-# error incompatible libbpkg version
-#endif
-
-// User agent.
-//
-#if defined(_WIN32)
-# if defined(__MINGW32__)
-# define BPKG_OS "MinGW"
-# else
-# define BPKG_OS "Windows"
-# endif
-#elif defined(__linux)
-# define BPKG_OS "GNU/Linux"
-#elif defined(__APPLE__)
-# define BPKG_OS "MacOS"
-#elif defined(__CYGWIN__)
-# define BPKG_OS "Cygwin"
-#elif defined(__FreeBSD__)
-# define BPKG_OS "FreeBSD"
-#elif defined(__OpenBSD__)
-# define BPKG_OS "OpenBSD"
-#elif defined(__NetBSD__)
-# define BPKG_OS "NetBSD"
-#elif defined(__sun)
-# define BPKG_OS "Solaris"
-#elif defined(__hpux)
-# define BPKG_OS "HP-UX"
-#elif defined(_AIX)
-# define BPKG_OS "AIX"
-#elif defined(__unix)
-# define BPKG_OS "Unix"
-#elif defined(__posix)
-# define BPKG_OS "Posix"
-#else
-# define BPKG_OS "Other"
-#endif
-
-#define BPKG_USER_AGENT \
- "bpkg/" BPKG_VERSION_STR " (" BPKG_OS "; +https://build2.org)" \
- " libbpkg/" LIBBPKG_VERSION_STR \
- " libbutl/" LIBBUTL_VERSION_STR
-
-#endif // BPKG_VERSION