14 print "process.pl command_file template_file directory_prefix\n";
20 open COMMANDS, $ARGV[0] || die "Can not open $ARGV[0]";
23 my @command = split /,/;
24 if ($command[0] != -1) {
26 if ($command[0] == 0){
27 $menu .= "<tr><td class=\"navi\"><a class=\"navi\"";
29 $menu .= " <tr><td class=\"subnavi\"><a class=\"navi\"";
31 $menu .= "HREF=\"$command[2]\">$command[1]</A></td></tr>\n\n";
36 open TEMPLATE, $ARGV[1] || die "Can not open $ARGV[1]";
42 open COMMANDS, $ARGV[0] || die "Can not open $ARGV[0]";
45 my @command = split /,/;
47 $n = $ARGV[2] . "/" . $command[2];
48 open OUTPUT, ">" . $n || die "Can not create $n";
51 open INPUT, $command[3] || die "Can not open $command[3]";
60 foreach $line (@template) {
62 $temp =~ s/#CONTENT#/$content/;
63 $temp =~ s/#MENU#/$menu/;