AutoTeX/Config.pm

filter: Statementstmt 100% 27 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 4 / 4 Podpod n/a totaltotal 100% 31 / 31 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« AutoTeX/Exception.pm ↑ Summary
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 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
13 ### use warnings;
14  
15 2 our ($VERSION) = '$Revision: 1.7.2.10 $' =~ m{ \$Revision: \s+ (\S+) }x;
16  
17 2 ▶use parent qw(Exporter);
Subroutine BEGIN: called CC=1 SCAR=0.0
18 2 our @EXPORT_OK;
19 2 ▶BEGIN {
Subroutine BEGIN: called CC=1 SCAR=0.0
20 2 @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 ▶use vars @EXPORT_OK;
Subroutine BEGIN: called CC=1 SCAR=0.0
40  
41 2 $DEFAULT_BRANCH = 'texlive/2009';
42 2 $DEFAULT_TEX_BIN_PATH = '/opt/texlive/2009/bin/arch:/bin';
43  
44 2 $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 2 $SENDMAIL = q{/usr/sbin/sendmail -t};
56  
57 # decryption program for encrypted source files
58 #$CRYPT = $arXiv::Config::Site::AutoTeX::CRYPT;
59 2 $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 2 $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 2 $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 2 $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 2 $TEX_PATH = q{};
80  
81 # The suid wrapper command used to switch to the chroot environment.
82 #$TEXCHR = $arXiv::Config::Site::AutoTeX::TEXCHR;
83 2 $TEXCHR = q{/bin/sh -c};
84  
85 # Name of the dvips binary (historical, dvihps, dvipsk, etc.)
86 #$DVIPS = $arXiv::Config::Site::AutoTeX::DVIPS;
87 2 $DVIPS = 'dvips';
88  
89 2 %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 2 $TEX_ADMIN_ADDRESS = q{};
109 #$MAIL_FAILURES_ADDRESS = $arXiv::Config::Site::Email::MAIL_FAILURES_ADDRESS;
110 2 $MAIL_FAILURES_ADDRESS = q{};
111  
112 2 1;
113  
114 __END__
« AutoTeX/Exception.pm ↑ Summary