Commit 8e451b08 authored by Jeremy C. Reed's avatar Jeremy C. Reed
Browse files

For trac302, fix some wrong version reporting. Now also show the version

for the component and BIND 10 suite.

This is not complete as others can be set to do same thing.
Also need to reconsider if we really want to keep up with
per-module versioning.

While editing Changelog also add svn revision for another entry.

And update the version in configure.ac. (I jump to future a few hours :)


git-svn-id: svn://bind10.isc.org/svn/bind10/trunk@3696 e5f2f494-b856-4b98-b285-d166d9295462
parent fe058b1f
124. [bug] jreed
Fix some wrong version reporting. Now also show the version
for the component and BIND 10 suite. (Trac #302, svn r3696)
123. [bug] jelte
src/bin/bindctl printed values had the form of python literals
(e.g. 'True'), while the input requires valid JSON (e.g. 'true').
Output changed to JSON format for consistency.
Output changed to JSON format for consistency. (svn r3694)
122. [func] stephen
src/bin/bind10: Added configuration options to Boss to determine
......
......@@ -2,7 +2,7 @@
# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.59])
AC_INIT(bind10-devel, 20101013, bind10-dev@isc.org)
AC_INIT(bind10-devel, 20101201, bind10-dev@isc.org)
AC_CONFIG_SRCDIR(README)
AM_INIT_AUTOMAKE
AC_CONFIG_HEADERS([config.h])
......
......@@ -28,7 +28,10 @@ import isc.util.process
isc.util.process.rename()
__version__ = 'Bindctl'
# This is the version that gets displayed to the user.
# The VERSION string consists of the module name, the module version
# number, and the overall BIND 10 version number (set in configure.ac).
VERSION = "bindctl 20101201 (BIND 10 @PACKAGE_VERSION@)"
def prepare_config_commands(tool):
'''Prepare fixed commands for local configuration editing'''
......@@ -113,7 +116,7 @@ def set_bindctl_options(parser):
if __name__ == '__main__':
try:
parser = OptionParser(version = __version__)
parser = OptionParser(version = VERSION)
set_bindctl_options(parser)
(options, args) = parser.parse_args()
server_addr = options.addr + ':' + str(options.port)
......
......@@ -38,7 +38,9 @@ import isc.cc
isc.util.process.rename()
# This is the version that gets displayed to the user.
__version__ = "v20091030 (Paving the DNS Parking Lot)"
# The VERSION string consists of the module name, the module version
# number, and the overall BIND 10 version number (set in configure.ac).
VERSION = "b10-msgq 20100818 (BIND 10 @PACKAGE_VERSION@)"
class MsgQReceiveError(Exception): pass
......@@ -421,7 +423,7 @@ if __name__ == "__main__":
parser.values.msgq_port = intval
# Parse any command-line options.
parser = OptionParser(version=__version__)
parser = OptionParser(version=VERSION)
parser.add_option("-v", "--verbose", dest="verbose", action="store_true",
help="display more about what is going on")
parser.add_option("-s", "--socket-file", dest="msgq_socket_file",
......@@ -433,7 +435,7 @@ if __name__ == "__main__":
# Announce startup.
if options.verbose:
sys.stdout.write("[b10-msgq] MsgQ %s\n" % __version__)
sys.stdout.write("[b10-msgq] %s\n" % VERSION)
msgq = MsgQ(options.msgq_socket_file, options.verbose)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment