Commit dd50dad2 authored by Ondřej Surý's avatar Ondřej Surý

Use configure.ac to generate version number into pykeymgr script

parent f5c671b5
......@@ -83,6 +83,7 @@
/src/knsupdate
/src/kzonecheck
/src/rosedb_tool
/src/utils/pykeymgr/pykeymgr
# Plugin binaries
/src/rosedb_tool
......
......@@ -594,6 +594,8 @@ AC_CONFIG_FILES([Makefile
src/zscanner/Makefile
])
AC_CONFIG_FILES([src/utils/pykeymgr/pykeymgr], [chmod +x src/utils/pykeymgr/pykeymgr])
AC_OUTPUT
AC_MSG_RESULT([$result_msg_add])
......@@ -33,7 +33,7 @@ EXTRA_DIST = \
contrib/murmurhash3/LICENSE \
contrib/openbsd/LICENSE \
contrib/ucw/LICENSE \
utils/pykeymgr/pykeymgr
utils/pykeymgr/pykeymgr.in
# static: libcontrib sources
libcontrib_la_SOURCES = \
......@@ -410,6 +410,7 @@ if HAVE_DAEMON
sbin_PROGRAMS = knotc knotd keymgr
sbin_SCRIPTS = utils/pykeymgr/pykeymgr
noinst_LTLIBRARIES += libknotd.la libknotus.la
CLEAN_FILES = $(sbin_SCRIPTS)
knotddir = $(includedir)/knot
knotd_HEADERS = \
......
......@@ -515,7 +515,7 @@ Syntax: -i <key_dir>
# help='''Calculate DS record for specified key.
#Syntax: -d <key_dir> <zone_name> <key_id|key_tag>''')
parser.add_argument("-f", "--force", action="store_true", dest="force", help="Do stuff even if dangerous.")
parser.add_argument("-V", "--version", action="version", version="pykeymgr (Knot DNS), version 2.5.0")
parser.add_argument("-V", "--version", action="version", version="pykeymgr (Knot DNS), version @VERSION@")
args = parser.parse_args()
opt_force = args.force
......
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