7 $ENV{CLASSPATH} .= ":../../lib/cql-java.jar";
10 print STDERR "Usage: $0 <trusted-CQL-compiler>\n";
13 my $compiler = $ARGV[0];
15 while (<sections/*>) {
18 next if /^CVS$/ || /^10$/; # I _can't_ get CVS to stop extracting "10"
19 print "answering section $_ - ", read_file("$sdir/name"), "\n";
21 while (<$sdir/*.cql>) {
23 s@sections/([0-9]+/.*)\.cql@$1@;
24 my $query = read_file($qfile);
26 $afile =~ s/\.cql$/.xcql/;
27 print " wrote $_ - $query\n";
28 my $fh = new IO::File("| $compiler > $afile")
29 or die "can't run compiler '$compiler': $!";
38 my $fh = new IO::File("<$name")
39 or die "can't read '$name': $!";
40 my $contents = join('', <$fh>);