make_html.pl 1.14 KB
Newer Older
ikits's avatar
ikits committed
1
#!/usr/bin/perl
ikits's avatar
ikits committed
2
##
ikits's avatar
ikits committed
3
4
## Copyright (C) 2003-2007, Marcelo E. Magallon <mmagallo[]debian org>
## Copyright (C) 2003-2007, Milan Ikits <milan ikits[]ieee org>
ikits's avatar
ikits committed
5
6
7
8
##
## This program is distributed under the terms and conditions of the GNU
## General Public License Version 2 as published by the Free Software
## Foundation or, at your option, any later version.
ikits's avatar
ikits committed
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25

use strict;
use warnings;

do 'bin/make.pl';

#---------------------------------------------------------------------------------------

my @extlist = ();
my %extensions = ();
my $group = "";
my $cur_group = "";

if (@ARGV)
{
    @extlist = @ARGV;

ikits's avatar
ikits committed
26
27
28
29
30
31
32
33
	foreach my $ext (sort @extlist)
	{
		my ($extname, $exturl, $types, $tokens, $functions, $exacts) = parse_ext($ext);
		$cur_group = $extname;
		$cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/;
		$extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/;
		if ($cur_group ne $group)
		{
34
35
36
37
			if ($group ne "")
			{
				print "<br>\n";
			}
ikits's avatar
ikits committed
38
39
40
41
			$group = $cur_group;
		}
		if ($exturl)
		{
42
			print "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href=\"$exturl\">$extname</a><br>\n";
ikits's avatar
ikits committed
43
44
45
		}
		else
		{
46
			print "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;$extname<br>\n";
ikits's avatar
ikits committed
47
48
		}
	}
ikits's avatar
ikits committed
49
}