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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
|
$NetBSD: patch-aa,v 1.1.1.1 2001/07/02 18:08:27 nra Exp $
--- Makefile.PL.orig Thu Jun 14 03:59:04 2001
+++ Makefile.PL Fri Jun 29 10:10:31 2001
@@ -10,7 +10,7 @@
$TT_LATEX_PATH $TT_PDFLATEX_PATH $TT_DVIPS_PATH $TT_LATEX_ENABLE
$TT_SPLASH_THEME );
-$TT_INST_ROOT = '/usr/local/tt2';
+$TT_INST_ROOT = '/usr/pkg/share/tt2';
$TT_IMAGES = '/tt2/images';
$TT_RUN_DBI = 'y';
$TT_BUILD_DOCS = 'y';
@@ -191,16 +191,16 @@
$TT_LATEX_ENABLE = 'n';
}
$TT_LATEX_ENABLE ||= 'y';
-$TT_LATEX_ENABLE = (
- prompt('Do you want to enable the latex filter?',
- $TT_LATEX_ENABLE) =~ /^y/i
-);
+#$TT_LATEX_ENABLE = (
+# prompt('Do you want to enable the latex filter?',
+# $TT_LATEX_ENABLE) =~ /^y/i
+#);
if ( $TT_LATEX_ENABLE ) {
- if (prompt('Are the pdflatex, latex and dvips paths ok?', 'y') !~ /^y/i) {
- $TT_PDFLATEX_PATH = prompt('pdflatex path', $TT_PDFLATEX_PATH);
- $TT_LATEX_PATH = prompt('latex path', $TT_LATEX_PATH);
- $TT_DVIPS_PATH = prompt('dvips path', $TT_DVIPS_PATH);
- }
+# if (prompt('Are the pdflatex, latex and dvips paths ok?', 'y') !~ /^y/i) {
+# $TT_PDFLATEX_PATH = prompt('pdflatex path', $TT_PDFLATEX_PATH);
+# $TT_LATEX_PATH = prompt('latex path', $TT_LATEX_PATH);
+# $TT_DVIPS_PATH = prompt('dvips path', $TT_DVIPS_PATH);
+# }
} else {
#
# Empty paths will cause the latex filter to throw an error
@@ -237,7 +237,8 @@
EOF
-if (prompt('Do you want to install these components?', 'y') =~ /^y/i) {
+if (1) {
+#prompt('Do you want to install these components?', 'y') =~ /^y/i) {
print <<EOF;
You can chose any directory for the installation of the additional
@@ -246,8 +247,8 @@
for other platforms welcome).
EOF
- $TT_INST_ROOT = prompt('Installation directory',
- $TT_INST_ROOT);
+# $TT_INST_ROOT = prompt('Installation directory',
+# $TT_INST_ROOT);
}
else {
$TT_INST_ROOT = '';
@@ -304,7 +305,7 @@
EOF
}
- $TT_IMAGES = prompt('URL base for TT2 images?', $TT_IMAGES);
+# $TT_IMAGES = prompt('URL base for TT2 images?', $TT_IMAGES);
$TT_IMAGES =~ s[/$][]g; # just in case
fix_file('templates/splash/config', 'images', "$TT_IMAGES/splash");
}
@@ -338,10 +339,10 @@
EOF
- $TT_BUILD_DOCS = (
- prompt('Do you want to build the HTML documentation?',
- $TT_BUILD_DOCS) =~ /^y/i
- );
+# $TT_BUILD_DOCS = (
+# prompt('Do you want to build the HTML documentation?',
+# $TT_BUILD_DOCS) =~ /^y/i
+# );
#--------------------------------------------------------------------
# prompt for docs style: plain or splash
@@ -356,10 +357,10 @@
use plain HTML.
EOF
- $TT_SPLASH_DOCS = (
- prompt('Do you want to use the Splash! library?',
- $TT_SPLASH_DOCS) =~ /^y/i
- );
+# $TT_SPLASH_DOCS = (
+# prompt('Do you want to use the Splash! library?',
+# $TT_SPLASH_DOCS) =~ /^y/i
+# );
if ($TT_SPLASH_DOCS) {
my $splash_style = '';
@@ -379,7 +380,7 @@
print "\n";
while (! $splash_style) {
- $TT_SPLASH_THEME = prompt("Enter name of colour scheme: ", $TT_SPLASH_THEME);
+# $TT_SPLASH_THEME = prompt("Enter name of colour scheme: ", $TT_SPLASH_THEME);
print("! No such scheme\n"), $TT_SPLASH_THEME = 'default'
unless ($splash_style = $SPLASH_STYLES->{ $TT_SPLASH_THEME });
}
@@ -437,10 +438,10 @@
EOF
- $TT_EXAMPLES = (
- prompt('Do you want to build the HTML example pages?',
- $TT_EXAMPLES) =~ /^y/i
- );
+# $TT_EXAMPLES = (
+# prompt('Do you want to build the HTML example pages?',
+# $TT_EXAMPLES) =~ /^y/i
+# );
#--------------------------------------------------------------------
# write ttree config file for building examples
@@ -698,9 +699,10 @@
print "[X] version $DBI::VERSION installed, configuring tests\n\n";
- if (prompt("Do you want to run the DBI tests?\n" .
- "It requires access to an existing test database.",
- $TT_RUN_DBI) =~ /y/i) {
+ if (0) {
+#prompt("Do you want to run the DBI tests?\n" .
+# "It requires access to an existing test database.",
+# $TT_RUN_DBI) =~ /y/i) {
$TT_RUN_DBI = 1;
my ($driver, $dbname);
|