mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
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 <dirk@hohndel.org>
This commit is contained in:
parent
a784b15cb8
commit
15c20a3c72
3 changed files with 30 additions and 10 deletions
|
@ -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 = "<!-- ";
|
||||
$commentEnd = " -->";
|
||||
}
|
||||
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("</li></ul>\n </dd>\n <dt>Seabaer</dt><dd><ul>\n\t <li>T1, H3, HUDC");
|
||||
}
|
||||
if ($lastVend lt "Uemis" && $vend gt "Uemis") {
|
||||
printf("</li></ul>\n </dd>\n <dt>Uemis</dt><dd><ul>\n\t <li>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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue