Blame thirdparty/glew/glew-1.9.0/auto/bin/make_html.pl
|
kusano |
7d535a |
#!/usr/bin/perl
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## Copyright (C) 2002-2008, Marcelo E. Magallon <mmagallo[]debian org=""></mmagallo[]debian>
|
|
kusano |
7d535a |
## Copyright (C) 2002-2008, Milan Ikits <milan ikits[]ieee="" org=""></milan>
|
|
kusano |
7d535a |
##
|
|
kusano |
7d535a |
## This program is distributed under the terms and conditions of the GNU
|
|
kusano |
7d535a |
## General Public License Version 2 as published by the Free Software
|
|
kusano |
7d535a |
## Foundation or, at your option, any later version.
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
use strict;
|
|
kusano |
7d535a |
use warnings;
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
do 'bin/make.pl';
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
#---------------------------------------------------------------------------------------
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
my @extlist = ();
|
|
kusano |
7d535a |
my %extensions = ();
|
|
kusano |
7d535a |
my $group = "";
|
|
kusano |
7d535a |
my $cur_group = "";
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
if (@ARGV)
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
@extlist = @ARGV;
|
|
kusano |
7d535a |
my $n = 1;
|
|
kusano |
7d535a |
print "\n";
|
|
kusano |
7d535a |
foreach my $ext (sort @extlist)
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
my ($extname, $exturl, $extstring, $types, $tokens, $functions, $exacts) = parse_ext($ext);
|
|
kusano |
7d535a |
$cur_group = $extname;
|
|
kusano |
7d535a |
$cur_group =~ s/^(?:W?)GL(?:X?)_([A-Z0-9]+?)_.*$/$1/;
|
|
kusano |
7d535a |
$extname =~ s/^(?:W?)GL(?:X?)_(.*)$/$1/;
|
|
kusano |
7d535a |
if ($cur_group ne $group)
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
if ($group ne "")
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
print " \n";
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
$group = $cur_group;
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
if ($exturl)
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
print "$n $extname\n";
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
else
|
|
kusano |
7d535a |
{
|
|
kusano |
7d535a |
print "$n $extname\n";
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
$n++;
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
}
|
|
kusano |
7d535a |
print "\n"
|
|
kusano |
7d535a |
}
|