7 print STDERR "Usage: $0 <trusted-CQL-compiler>\n";
10 my $compiler = $ARGV[0];
12 while (<sections/*>) {
15 print "answering section $_ - ", read_file("$sdir/name"), "\n";
17 while (<$sdir/*.cql>) {
19 s@sections/([0-9]+/.*)\.cql@$1@;
20 my $query = read_file($qfile);
22 $afile =~ s/\.cql$/.xcql/;
23 print " query $_ - $query\n";
24 my $fh = new IO::File("| $compiler > $afile")
25 or die "can't run compiler '$compiler': $!";
34 my $fh = new IO::File("<$name")
35 or die "can't read '$name': $!";
36 my $contents = join('', <$fh>);