line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package TeX::AutoTeX::Config; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
# |
4
|
|
|
|
|
|
|
# $Id: Config.pm,v 1.7.2.10 2011/02/02 06:26:25 thorstens Exp $ |
5
|
|
|
|
|
|
|
# $Revision: 1.7.2.10 $ |
6
|
|
|
|
|
|
|
# $Source: /cvsroot/arxivlib/arXivLib/lib/TeX/AutoTeX/Config.pm,v $ |
7
|
|
|
|
|
|
|
# |
8
|
|
|
|
|
|
|
# $Date: 2011/02/02 06:26:25 $ |
9
|
|
|
|
|
|
|
# $Author: thorstens $ |
10
|
|
|
|
|
|
|
# |
11
|
|
|
|
|
|
|
|
12
|
2
|
|
|
2
|
|
14
|
use strict; |
|
2
|
|
|
|
|
2
|
|
|
2
|
|
|
|
|
146
|
|
13
|
|
|
|
|
|
|
### use warnings; |
14
|
|
|
|
|
|
|
|
15
|
|
|
|
|
|
|
our ($VERSION) = '$Revision: 1.7.2.10 $' =~ m{ \$Revision: \s+ (\S+) }x; |
16
|
|
|
|
|
|
|
|
17
|
2
|
|
|
2
|
|
1684
|
use parent qw(Exporter); |
|
2
|
|
|
|
|
590
|
|
|
2
|
|
|
|
|
9
|
|
18
|
|
|
|
|
|
|
our @EXPORT_OK; |
19
|
|
|
|
|
|
|
BEGIN { |
20
|
2
|
|
|
2
|
|
209
|
@EXPORT_OK = qw( |
21
|
|
|
|
|
|
|
$DEFAULT_BRANCH |
22
|
|
|
|
|
|
|
$DEFAULT_TEX_BIN_PATH |
23
|
|
|
|
|
|
|
$AUTOTEX_TIMEOUT |
24
|
|
|
|
|
|
|
$AUTOTEX_ENV_PATH |
25
|
|
|
|
|
|
|
$TEX_PATH |
26
|
|
|
|
|
|
|
$TEXCHR |
27
|
|
|
|
|
|
|
$CRYPT |
28
|
|
|
|
|
|
|
%TEX_BINARIES |
29
|
|
|
|
|
|
|
$DVIPS |
30
|
|
|
|
|
|
|
$TEX_ADMIN_ADDRESS |
31
|
|
|
|
|
|
|
$MAIL_FAILURES_ADDRESS |
32
|
|
|
|
|
|
|
$SENDMAIL |
33
|
|
|
|
|
|
|
$DEFAULTPSRESOLUTION |
34
|
|
|
|
|
|
|
$DIRECTIVE_FILE |
35
|
|
|
|
|
|
|
$THIS_SITE |
36
|
|
|
|
|
|
|
); |
37
|
|
|
|
|
|
|
} |
38
|
|
|
|
|
|
|
|
39
|
2
|
|
|
2
|
|
11
|
use vars @EXPORT_OK; |
|
2
|
|
|
|
|
4
|
|
|
2
|
|
|
|
|
582
|
|
40
|
|
|
|
|
|
|
|
41
|
|
|
|
|
|
|
$DEFAULT_BRANCH = 'texlive/2009'; |
42
|
|
|
|
|
|
|
$DEFAULT_TEX_BIN_PATH = '/opt/texlive/2009/bin/arch:/bin'; |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
$DIRECTIVE_FILE = '00README.XXX'; |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
############################################################################ |
47
|
|
|
|
|
|
|
# The following variables are specific to individual arXiv sites (imported # |
48
|
|
|
|
|
|
|
# from arXiv::Config::Site::*) They must be customized for other # |
49
|
|
|
|
|
|
|
# installations # |
50
|
|
|
|
|
|
|
############################################################################ |
51
|
|
|
|
|
|
|
# use arXiv::Config::Site::AutoTeX; |
52
|
|
|
|
|
|
|
|
53
|
|
|
|
|
|
|
# sendmail command for piping mail |
54
|
|
|
|
|
|
|
#$SENDMAIL = $arXiv::Config::Site::AutoTeX::SENDMAIL; |
55
|
|
|
|
|
|
|
$SENDMAIL = q{/usr/sbin/sendmail -t}; |
56
|
|
|
|
|
|
|
|
57
|
|
|
|
|
|
|
# decryption program for encrypted source files |
58
|
|
|
|
|
|
|
#$CRYPT = $arXiv::Config::Site::AutoTeX::CRYPT; |
59
|
|
|
|
|
|
|
$CRYPT = q{}; |
60
|
|
|
|
|
|
|
|
61
|
|
|
|
|
|
|
# set the default resolution/mode for dvips using bitmap fonts |
62
|
|
|
|
|
|
|
#$DEFAULTPSRESOLUTION = defined $arXiv::Config::Site::AutoTeX::DEFAULTPSRESOLUTION ? |
63
|
|
|
|
|
|
|
# $arXiv::Config::Site::AutoTeX::DEFAULTPSRESOLUTION : |
64
|
|
|
|
|
|
|
# 600; |
65
|
|
|
|
|
|
|
$DEFAULTPSRESOLUTION = 600; |
66
|
|
|
|
|
|
|
|
67
|
|
|
|
|
|
|
# How long a latex process is allowed to run before being alarmed |
68
|
|
|
|
|
|
|
#$AUTOTEX_TIMEOUT = $arXiv::Config::Site::AutoTeX::AUTOTEX_TIMEOUT; |
69
|
|
|
|
|
|
|
$AUTOTEX_TIMEOUT = 300; |
70
|
|
|
|
|
|
|
|
71
|
|
|
|
|
|
|
# The PATH for system tools needed by tex, etc. A chroot setup requires special consideration |
72
|
|
|
|
|
|
|
#$AUTOTEX_ENV_PATH = $arXiv::Config::Site::AutoTeX::AUTOTEX_ENV_PATH; |
73
|
|
|
|
|
|
|
$AUTOTEX_ENV_PATH = '/usr/local/bin:/usr/bin:/bin'; |
74
|
|
|
|
|
|
|
|
75
|
|
|
|
|
|
|
# In a chroot setup this specifies the new root directory. It is assumed |
76
|
|
|
|
|
|
|
# that the program is invoked from inside the new root, i.e. the working |
77
|
|
|
|
|
|
|
# directory is a subdirectory thereof. |
78
|
|
|
|
|
|
|
#$TEX_PATH = $arXiv::Config::Site::AutoTeX::TEX_PATH; |
79
|
|
|
|
|
|
|
$TEX_PATH = q{}; |
80
|
|
|
|
|
|
|
|
81
|
|
|
|
|
|
|
# The suid wrapper command used to switch to the chroot environment. |
82
|
|
|
|
|
|
|
#$TEXCHR = $arXiv::Config::Site::AutoTeX::TEXCHR; |
83
|
|
|
|
|
|
|
$TEXCHR = q{/bin/sh -c}; |
84
|
|
|
|
|
|
|
|
85
|
|
|
|
|
|
|
# Name of the dvips binary (historical, dvihps, dvipsk, etc.) |
86
|
|
|
|
|
|
|
#$DVIPS = $arXiv::Config::Site::AutoTeX::DVIPS; |
87
|
|
|
|
|
|
|
$DVIPS = 'dvips'; |
88
|
|
|
|
|
|
|
|
89
|
|
|
|
|
|
|
%TEX_BINARIES = ( |
90
|
|
|
|
|
|
|
HTEX => 'tex', # $arXiv::Config::Site::AutoTeX::HTEX, |
91
|
|
|
|
|
|
|
TEX => 'tex', # $arXiv::Config::Site::AutoTeX::TEX, |
92
|
|
|
|
|
|
|
BIGTEX => 'bigtex', # $arXiv::Config::Site::AutoTeX::BIGTEX, |
93
|
|
|
|
|
|
|
HLATEX2E => 'latex2e', # $arXiv::Config::Site::AutoTeX::HLATEX2E, |
94
|
|
|
|
|
|
|
HLATEX209 => 'hlatex', # $arXiv::Config::Site::AutoTeX::HLATEX209, |
95
|
|
|
|
|
|
|
LATEX2E => 'latex2e', # $arXiv::Config::Site::AutoTeX::LATEX2E, |
96
|
|
|
|
|
|
|
LATEX209 => 'latex209', # $arXiv::Config::Site::AutoTeX::LATEX209, |
97
|
|
|
|
|
|
|
BIGLATEX => 'biglatex', # $arXiv::Config::Site::AutoTeX::BIGLATEX, |
98
|
|
|
|
|
|
|
HLATEX => 'latex', # $arXiv::Config::Site::AutoTeX::HLATEX, |
99
|
|
|
|
|
|
|
LATEX => 'latex', # $arXiv::Config::Site::AutoTeX::LATEX, |
100
|
|
|
|
|
|
|
PDFLATEX => 'pdflatex', # $arXiv::Config::Site::AutoTeX::PDFLATEX, |
101
|
|
|
|
|
|
|
HPDFLATEX => 'pdflatex', # $arXiv::Config::Site::AutoTeX::PDFLATEX, |
102
|
|
|
|
|
|
|
PDFTEX => 'pdftex', # $arXiv::Config::Site::AutoTeX::PDFTEX, |
103
|
|
|
|
|
|
|
); |
104
|
|
|
|
|
|
|
|
105
|
|
|
|
|
|
|
#use arXiv::Config::Site::Email; |
106
|
|
|
|
|
|
|
|
107
|
|
|
|
|
|
|
#$TEX_ADMIN_ADDRESS = $arXiv::Config::Site::Email::TEX_ADMIN_ADDRESS; |
108
|
|
|
|
|
|
|
$TEX_ADMIN_ADDRESS = q{}; |
109
|
|
|
|
|
|
|
#$MAIL_FAILURES_ADDRESS = $arXiv::Config::Site::Email::MAIL_FAILURES_ADDRESS; |
110
|
|
|
|
|
|
|
$MAIL_FAILURES_ADDRESS = q{}; |
111
|
|
|
|
|
|
|
|
112
|
|
|
|
|
|
|
1; |
113
|
|
|
|
|
|
|
|
114
|
|
|
|
|
|
|
__END__ |