ctmake 582 B

1234567891011121314151617181920212223
  1. #!/usr/bin/perl
  2. $tool = $ENV{"DTOOL"} ;
  3. if ( $tool eq "" ) {
  4. die "not configured for using ct-tools\n" ;
  5. }
  6. require "$tool/built/include/ctutils.pl" ;
  7. require "$tool/built/include/ctvspec.pl" ;
  8. require "$tool/built/include/ctquery.pl" ;
  9. require "$tool/built/include/ctproj.pl" ;
  10. require "$tool/built/include/ctcm.pl" ;
  11. $projname = &CTProj ;
  12. $projname =~ tr/A-Z/a-z/ ;
  13. $flav = &CTQueryProj( $projname ) ;
  14. $spec = &CTResolveSpec( $projname, $flav ) ;
  15. $line = join( " ", @ARGV ) ;
  16. if ( ! &CTCMMake( $line, $projname, $spec ) ) {
  17. print STDERR "Could not make '$line'\n" ;
  18. }