From 15c20a3c721471496edf5816a01bd5579a09f03e Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Wed, 3 May 2017 07:02:44 -0700 Subject: Update supported dive computers I clearly forgot to do that prior to the last release - and of course we needed to add special handling for Seabaer. And to make it more obvious that the files themselves shouldn't be edited, let's add some comment to that extend to the two files as well. Closes #375 Signed-off-by: Dirk Hohndel --- scripts/parse-descriptor.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'scripts/parse-descriptor.pl') diff --git a/scripts/parse-descriptor.pl b/scripts/parse-descriptor.pl index b1729a608..6bde935f0 100755 --- a/scripts/parse-descriptor.pl +++ b/scripts/parse-descriptor.pl @@ -21,6 +21,14 @@ if ($infi !~ /.*descriptor.c/) { open(my $fh, "<", $infi) || croak "can't open $infi: $!"; open(STDOUT, ">", $outfi) || croak "can't open $outfi: $!"; +my $commentStart = "# "; +my $commentEnd = ""; +if ($type eq "html") { + $commentStart = ""; +} +printf("%s This file is automatically generated, please edit scripts/parse-descriptor.pl%s\n", $commentStart, $commentEnd); + my $lastVend = ""; my $lastMod = ""; my @descriptors = (); @@ -37,6 +45,9 @@ foreach (@sortedDescriptors) { if ($vend eq $lastVend) { printf(", %s", $mod); } else { + if ($lastVend lt "Seabaer" && $vend gt "Seabaer") { + printf("\n \n
Seabaer
    \n\t
  • T1, H3, HUDC"); + } if ($lastVend lt "Uemis" && $vend gt "Uemis") { printf("
\n
\n
Uemis
    \n\t
  • Zürich SDA"); } @@ -50,6 +61,9 @@ foreach (@sortedDescriptors) { if ($vend eq $lastVend) { printf(", %s", $mod); } else { + if ($lastVend lt "Seabaer" && $vend gt "Seabaer") { + printf("\nSeabaer: T1, H3, HUDC"); + } if ($lastVend lt "Uemis" && $vend gt "Uemis") { printf("\nUemis: Zürich SDA"); } -- cgit v1.2.3-70-g09d2