3 # Generate the targets-meson.sgml file from targets-meson.txt
4 # Copyright (c) 2000-2025, PostgreSQL Global Development Group
7 use warnings FATAL
=> 'all';
9 my $targets_meson_file = $ARGV[0];
10 open my $targets_meson, '<', $targets_meson_file or die;
13 "<!-- autogenerated from doc/src/sgml/targets-meson.txt, do not edit -->\n";
15 # Find the start of each group of targets
16 while (<$targets_meson>)
20 if (/^(.*) Targets:$/)
23 my $targets_id = lc $targets;
26 <sect3 id
="targets-meson-$targets_id">
27 <title
>$targets Targets
</title
>
32 # Each target in the group
33 while (<$targets_meson>)
36 last if !/^\s+([^ ]+)\s+(.+)/;
42 $target_id =~ s/\//-/g
;
45 <varlistentry id
="meson-target-${target_id}">
46 <term
><option
>${target
}</option></term
>