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/;
......
This diff is collapsed.
This diff is collapsed.
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