summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorSimon Howard2008-02-26 22:10:06 +0000
committerSimon Howard2008-02-26 22:10:06 +0000
commit0c2b0232b6f56221a07dee088b40d191facc4f0a (patch)
tree7ba0943eab8a585bcfa62b8c2f81bd898c1a6ffb /man
parentcb771394c341904f8b3e8ee55dedc73898ac39f5 (diff)
downloadchocolate-doom-0c2b0232b6f56221a07dee088b40d191facc4f0a.tar.gz
chocolate-doom-0c2b0232b6f56221a07dee088b40d191facc4f0a.tar.bz2
chocolate-doom-0c2b0232b6f56221a07dee088b40d191facc4f0a.zip
Don't sort config file variables alphabetically. Throw an exception for
unknown documentation comments. Subversion-branch: /trunk/chocolate-doom Subversion-revision: 1093
Diffstat (limited to 'man')
-rwxr-xr-xman/docgen7
1 files changed, 3 insertions, 4 deletions
diff --git a/man/docgen b/man/docgen
index d59ff71f..73e8c852 100755
--- a/man/docgen
+++ b/man/docgen
@@ -61,8 +61,6 @@ class ConfigFile:
def manpage_output(self):
result = ".SH CONFIGURATION VARIABLES\n"
- self.variables.sort()
-
for v in self.variables:
result += ".TP\n"
result += v.manpage_output()
@@ -72,8 +70,6 @@ class ConfigFile:
def plaintext_output(self):
result = ""
- self.variables.sort()
-
w = parameter_list_width(self.variables)
for p in self.variables:
@@ -314,6 +310,9 @@ def add_parameter(param, line, config_file):
if match:
param.name = match.group(1)
config_file.add_variable(param)
+ return
+
+ raise Exception(param.text)
def process_file(file):