forked from panda3d/panda3d
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathctihave
More file actions
executable file
·33 lines (27 loc) · 774 Bytes
/
ctihave
File metadata and controls
executable file
·33 lines (27 loc) · 774 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/perl
if ($#ARGV != -1) {
exit print "Usage: ctihave\n" ;
}
$tool = $ENV{"DTOOL"} ;
if ( $tool eq "" ) {
die "not configured for using CTtools\n" ;
}
require "$tool/built/include/ctutils.pl" ;
require "$tool/built/include/ctvspec.pl" ;
require "$tool/built/include/ctquery.pl" ;
require "$tool/built/include/ctproj.pl" ;
require "$tool/built/include/ctcm.pl" ;
$projname = &CTProj ;
$projname =~ tr/A-Z/a-z/ ;
$flav = &CTQueryProj( $projname ) ;
$spec = &CTResolveSpec( $projname, $flav ) ;
if ( $projname eq "" ) {
exit print "Not currently in any project tree\n" ;
}
$result = &CTCMIHave( $projname, $flav, $spec ) ;
if ( $result ne "" ) {
@splitlist = split( /\n/, $result ) ;
foreach $item ( @splitlist ) {
print $item . "\n" ;
}
}