Commit 52aa96d4 authored by Vladislav Vaintroub's avatar Vladislav Vaintroub

remove table formatting (squeeze many spaces into one)

in mysqld--help test.

When mysql is compiled with different options,columns
might have different size (this depends on parameter 
names and some parameters might only be available 
when some option is switched on)
parent 291865bd
...@@ -21,12 +21,16 @@ perl; ...@@ -21,12 +21,16 @@ perl;
open(F, '<', "$ENV{MYSQL_TMP_DIR}/mysqld--help.txt") or die; open(F, '<', "$ENV{MYSQL_TMP_DIR}/mysqld--help.txt") or die;
while (<F>) { while (<F>) {
next if 1../The following groups are read/; next if 1../The following groups are read/;
# formatting, skip line consisting entirely of dashes and blanks
next if /^[\- ]+$/;
next if /Value \(after reading options\)/; # skip table header
next if /^($re1) /; next if /^($re1) /;
next if /^($re2)-/; next if /^($re2)-/;
$skip=0 if /^ -/; $skip=0 if /^ -/;
$skip=1 if / --($re2)\b/; $skip=1 if / --($re2)\b/;
# fixes for 32-bit
y!\\!/!; y!\\!/!;
s/[ ]+/ /; # squeeze spaces to remove table formatting
# fixes for 32-bit
s/\b4294967295\b/18446744073709551615/; s/\b4294967295\b/18446744073709551615/;
s/\b2146435072\b/9223372036853727232/; s/\b2146435072\b/9223372036853727232/;
s/\b196608\b/262144/; s/\b196608\b/262144/;
......
...@@ -708,8 +708,6 @@ The following options may be given as the first argument: ...@@ -708,8 +708,6 @@ The following options may be given as the first argument:
-W, --warnings[=#] Deprecated; use --log-warnings instead. -W, --warnings[=#] Deprecated; use --log-warnings instead.
Variables (--variable-name=value) Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- ----------------------------------------
abort-slave-event-count 0 abort-slave-event-count 0
allow-suspicious-udfs FALSE allow-suspicious-udfs FALSE
auto-increment-increment 1 auto-increment-increment 1
......
...@@ -712,8 +712,6 @@ The following options may be given as the first argument: ...@@ -712,8 +712,6 @@ The following options may be given as the first argument:
-W, --warnings[=#] Deprecated; use --log-warnings instead. -W, --warnings[=#] Deprecated; use --log-warnings instead.
Variables (--variable-name=value) Variables (--variable-name=value)
and boolean options {FALSE|TRUE} Value (after reading options)
--------------------------------- ----------------------------------------
abort-slave-event-count 0 abort-slave-event-count 0
allow-suspicious-udfs FALSE allow-suspicious-udfs FALSE
auto-increment-increment 1 auto-increment-increment 1
......
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