Archived
1
0
This repository has been archived on 2021-10-08. You can view files and clone it, but cannot push or open issues or pull requests.
ACU/grades/gen_grading.pl

29 lines
435 B
Perl
Raw Normal View History

2013-09-05 20:32:05 +00:00
#! /usr/bin/env perl
use v5.10.1;
use strict;
use warnings;
use Getopt::Long;
use Pod::Usage;
use lib "..";
use ACU::Grading;
use ACU::Trace;
2013-09-09 11:42:44 +00:00
my $grade = Grading->new();
2013-09-05 20:32:05 +00:00
do {
2013-09-09 11:42:44 +00:00
my $xml;
open $xml, "<", shift or die $!;
binmode $xml;
my $trace = Trace->new($xml);
close $xml unless $xml eq *STDIN;
2013-09-05 20:32:05 +00:00
$grade->create_from_trace("rendu_1", "rendu-1", $trace);
} while ($#ARGV >= 0);
2013-09-09 11:42:44 +00:00
print $grade->to_string();