7 # =====================================================================
11 # find out where a perforce file resides on the local machine
14 open(P4
, "p4 where $_[0] |");
30 die "usage: $0 <branch> <output>\n";
33 # =====================================================================
35 sub perforceGatherAndPrune
42 open(P4
, "p4 files $spec/... |");
47 s
%//depot
/swg/$branch/data/sku\
.0/sys\.(shared|server)/compiled
/game/%%;
53 open(P4
, "p4 opened -a $spec/... |");
57 s
%//depot
/swg/$branch/data/sku\
.0/sys\.(shared|server)/compiled
/game/%%;
64 return sort keys %files;
67 # =====================================================================
69 usage
() unless (@ARGV == 2 && $ARGV[0] =~ m
%^(current
|test
|live
|x1
|x2
|s0
|s1
|s2
|s3
|s4
|s5
)$%);
72 my $output = $ARGV[1];
75 my @files = perforceGatherAndPrune
("//depot/swg/$branch/data/sku.0/sys.shared/compiled/game/object");
77 open(B
, ">" . $output);
80 print B
"/rem object createAt ", $_, "\n";