line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TeX::AutoTeX::Fileset; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# $Id: Fileset.pm,v 1.8.2.4 2011/01/03 04:06:00 thorstens Exp $ |
5
|
|
|
|
|
|
|
# $Revision: 1.8.2.4 $ |
6
|
|
|
|
|
|
|
# $Source: /cvsroot/arxivlib/arXivLib/lib/TeX/AutoTeX/Fileset.pm,v $ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# $Date: 2011/01/03 04:06:00 $ |
9
|
|
|
|
|
|
|
# $Author: thorstens $ |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
8
|
use strict; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
62
|
|
13
|
|
|
|
|
|
|
### use warnings; |
14
|
2
|
|
|
2
|
|
10
|
use Carp; |
|
2
|
|
|
|
|
5
|
|
|
2
|
|
|
|
|
199
|
|
15
|
|
|
|
|
|
|
|
16
|
|
|
|
|
|
|
our ($VERSION) = '$Revision: 1.8.2.4 $' =~ m{ \$Revision: \s+ (\S+) }x; |
17
|
|
|
|
|
|
|
|
18
|
2
|
|
|
2
|
|
1373
|
use TeX::AutoTeX::File; |
|
2
|
|
|
|
|
8
|
|
|
2
|
|
|
|
|
536
|
|
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
sub new { |
21
|
0
|
|
|
0
|
1
|
|
my $that = shift; |
22
|
0
|
|
0
|
|
|
|
my $class = ref($that) || $that; |
23
|
0
|
|
|
|
|
|
my $self = { |
24
|
|
|
|
|
|
|
log => undef, |
25
|
|
|
|
|
|
|
dir => undef, |
26
|
|
|
|
|
|
|
cache => {}, |
27
|
|
|
|
|
|
|
local_hyper_transform => undef, |
28
|
|
|
|
|
|
|
override => { |
29
|
|
|
|
|
|
|
ignore => 'TYPE_IGNORE', |
30
|
|
|
|
|
|
|
include => 'TYPE_INCLUDE', |
31
|
|
|
|
|
|
|
}, |
32
|
|
|
|
|
|
|
@_ |
33
|
|
|
|
|
|
|
}; |
34
|
0
|
0
|
|
|
|
|
if (!defined $self->{log}) { |
35
|
0
|
|
|
|
|
|
throw TeX::AutoTeX::FatalException 'No log configuration supplied'; |
36
|
|
|
|
|
|
|
} |
37
|
0
|
0
|
|
|
|
|
if (!defined $self->{dir}) { |
38
|
0
|
|
|
|
|
|
throw TeX::AutoTeX::FatalException 'No directory specified'; |
39
|
|
|
|
|
|
|
} |
40
|
0
|
|
|
|
|
|
bless $self, $class; |
41
|
|
|
|
|
|
|
} |
42
|
|
|
|
|
|
|
|
43
|
|
|
|
|
|
|
sub new_File { |
44
|
0
|
|
|
0
|
1
|
|
my ($self, $filename) = @_; |
45
|
|
|
|
|
|
|
|
46
|
0
|
0
|
|
|
|
|
if (!defined $filename) { |
47
|
0
|
|
|
|
|
|
throw TeX::AutoTeX::FatalException 'no filename provided to new_File()'; |
48
|
|
|
|
|
|
|
} |
49
|
0
|
0
|
|
|
|
|
if ($self->{cache}->{$filename}) { |
50
|
0
|
|
|
|
|
|
return $self->{cache}->{$filename}; |
51
|
|
|
|
|
|
|
} |
52
|
0
|
|
|
|
|
|
$self->{cache}->{$filename} = TeX::AutoTeX::File->new($self, $filename); |
53
|
|
|
|
|
|
|
} |
54
|
|
|
|
|
|
|
|
55
|
|
|
|
|
|
|
sub override { |
56
|
0
|
|
|
0
|
1
|
|
my ($self, $type) = @_; |
57
|
0
|
|
|
|
|
|
return $self->{override}->{$type}; |
58
|
|
|
|
|
|
|
} |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
1; |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
__END__ |