Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Sebastian Schrader
Kea
Commits
7dfa7561
Commit
7dfa7561
authored
Aug 11, 2014
by
Jeremy C. Reed
Browse files
fix script that creates log messages HTML to say Kea instead of BIND 10
parent
8ba8e0e5
Changes
1
Hide whitespace changes
Inline
Side-by-side
tools/system_messages.py
View file @
7dfa7561
...
...
@@ -15,7 +15,7 @@
# Produce System Messages Manual
#
# This tool reads all the .mes files in the directory tree whose root is given
# on the command line and interprets them as
BIND 10
message files. It pulls
# on the command line and interprets them as message files. It pulls
# all the messages and description out, sorts them by message ID, and writes
# them out as a single (formatted) file.
#
...
...
@@ -65,10 +65,10 @@ SEC_HEADER="""<?xml version="1.0" encoding="UTF-8"?>
Do not edit this file.
-->
<book>
<?xml-stylesheet href="
bind10
-guide.css" type="text/css"?>
<?xml-stylesheet href="
kea
-guide.css" type="text/css"?>
<bookinfo>
<title>
BIND 10
Messages Manual</title>
<title>
Kea
Messages Manual</title>
<copyright>
<year>2011-2014</year><holder>Internet Systems Consortium, Inc.</holder>
...
...
@@ -76,14 +76,14 @@ SEC_HEADER="""<?xml version="1.0" encoding="UTF-8"?>
<abstract>
<para>
This is the messages manual for
BIND 10
version &__VERSION__;.
This is the messages manual for
Kea
version &__VERSION__;.
The most up-to-date version of this document, along with
other documents for
BIND 10
, can be found at
<ulink url="http://
bind10
.isc.org/docs"/>.
other documents for
Kea
, can be found at
<ulink url="http://
kea
.isc.org/docs"/>.
</para>
</abstract>
<releaseinfo>This is the messages manual for
BIND 10
version
<releaseinfo>This is the messages manual for
Kea
version
&__VERSION__;.</releaseinfo>
</bookinfo>
...
...
@@ -91,7 +91,7 @@ SEC_HEADER="""<?xml version="1.0" encoding="UTF-8"?>
<title>Introduction</title>
<para>
This document lists each message that can be logged by the
programs in the
BIND 10
package. Each entry in this manual
programs in the
Kea
package. Each entry in this manual
is of the form:
<screen>IDENTIFICATION message-text</screen>
... where "IDENTIFICATION" is the message identification included
...
...
@@ -106,13 +106,13 @@ SEC_HEADER="""<?xml version="1.0" encoding="UTF-8"?>
being logged.
</para>
<para>
For information on configuring and using
BIND 10
logging,
refer to the <ulink url="
bind10
-guide.html">
BIND 10
Guide</ulink>.
For information on configuring and using
Kea
logging,
refer to the <ulink url="
kea
-guide.html">
Kea
Guide</ulink>.
</para>
</chapter>
<chapter id="messages">
<title>
BIND 10
Messages</title>
<title>
Kea Log
Messages</title>
<para>
<variablelist>
"""
...
...
@@ -270,7 +270,7 @@ def addToDictionary(msgid, msgtext, desc, filename):
# If the ID is in the dictionary, append a "(n)" to the name - this will
# flag that there are multiple instances. (However, this is an error -
# each ID should be unique in
BIND-10
.)
# each ID should be unique in
the code
.)
if
msgid
in
dictionary
:
i
=
1
while
msgid
+
" ("
+
str
(
i
)
+
")"
in
dictionary
:
...
...
@@ -371,7 +371,7 @@ def processAllFiles(root):
calls processFile for all .mes files found.
Parameters:
root Directory that is the root of the
BIND-10
source tree
root Directory that is the root of the source tree
"""
for
(
path
,
dirs
,
files
)
in
os
.
walk
(
root
):
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment