#!/usr/bin/perl
use strict;
my $top="
<HTML>
<HEAD>
<TITLE>
Integral Models of Representations of Weyl groups</TITLE>
</HEAD>
<BODY  BGCOLOR=white>
<CENTER><H2>Integral Models of Representations of Weyl groups</H2></CENTER>
<P>
Here are integral models of the following Weyl groups.
";

my $bottom="
</BODY>
</HTML>";
print $top;

my @dirs;

opendir(DIR,'.')||die("Can't open");
my @dirs= grep {/^[A-G0-9]*$/} readdir(DIR);
@dirs=sort {$a cmp $b} @dirs;
closedir(DIR);
print "<UL>";
foreach my $type (qw(A B D E F G)){
    print "<LI><STRONG>$type</STRONG>: ";
    my @mydirs= grep {/$type/} @dirs;
    foreach my $dir (@mydirs){
#	$dir=s/[A-G]+//g;
	print "<A HREF=$dir>$dir</A>&nbsp;";
    }
}
print "</UL>";


open(IN,"<body");
foreach  (<IN>){
    print;
}
close(IN);


print $bottom; 

