If possible, fail build on option doc mismatch
This adds a bunch of steps to the build process that verify cyclonedds.xsd, cyclonedds.rnc and options.md as committed match the configuration tables in the source. The cyclonedds.rnc and options.md depend on having perl available, cyclonedds.xsd on having Java and the "trang" conversion tool. Not having these tools simply means some of the checks are skipped. Signed-off-by: Erik Boasson <eb@ilities.com> makernc: more forgiving of line endings input Signed-off-by: Erik Boasson <eb@ilities.com> Ignore line endings comparing cyclonedds XSD, RNC Signed-off-by: Erik Boasson <eb@ilities.com>
This commit is contained in:
parent
c642f5676a
commit
ff79941aeb
3 changed files with 48 additions and 2 deletions
8
docs/compare.pl
Normal file
8
docs/compare.pl
Normal file
|
@ -0,0 +1,8 @@
|
|||
open A, "< $ARGV[0]" or die "can't open $ARGV[0]";
|
||||
open B, "< $ARGV[1]" or die "can't open $ARGV[1]";
|
||||
while (defined ($a = <A>) && defined ($b = <B>)) {
|
||||
$a =~ s/[\r\n]+$//s;
|
||||
$b =~ s/[\r\n]+$//s;
|
||||
exit 1 unless $a eq $b;
|
||||
}
|
||||
exit 0;
|
Loading…
Add table
Add a link
Reference in a new issue