Commit 807154c0 authored by Per Cederqvist's avatar Per Cederqvist

Use read_versions instead of duplicating code.

parent 24aa07a7
# Check return values for a lot of functions.
# Check that all functions do the right thing when invoked before the
# user logs in.
set f [open "$top_srcdir/versions"]
while {[gets $f line] >= 0} {
if {[lindex $line 0] == "PROTOCOL-A-LEVEL:"} {
set protocol_a_level [lindex $line 1]
} elseif {[lindex $line 0] == "SERVER-SOFTWARE:"} {
set server_software [lindex $line 1]
} elseif {[lindex $line 0] == "SERVER-VERSION:"} {
set server_version [lindex $line 1]
} elseif {[lindex $line 0] == "SERVER-COMPAT-VERSION:"} {
set server_compat_version [lindex $line 1]
}
}
close $f
read_versions
lyskomd_start
......
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