#!/usr/local/bin/perl
# openall.cgi
# Add all classes to the open list

require './software-lib.pl';
open(HEIROPEN, "> $module_config_directory/heiropen");
$n = &list_packages();
for($i=0; $i<$n; $i++) {
	@w = split(/\//, $packages{$i,'class'});
	for($j=0; $j<@w; $j++) {
		push(@list, join('/', @w[0..$j]));
		}
	}
@list = &unique(@list);
foreach $c (@list) { print HEIROPEN "$c\n"; }
close(HEIROPEN);
&redirect("tree.cgi");

