1 #### Here is the configuration information for the config.prl file.
3 # Copyright (C) 2002-2005 Freescale Semiconductor
4 # Distributed under terms of the GNU General Public License (GPL).
8 # Describes the configuration variables that need to be queried.
9 @ENVS = ('installdir' =>
10 {default=>'/usr/local/bin',
11 desc
=>'Location to install prest',
15 {default=>'http://docutils.sourceforge.net/tools/stylesheets/default.css',
16 desc
=>'URL for default cascading style sheet (recommended to serve local copy)',
20 desc
=>'Run perl tainted (not required for safe operation)',
25 desc
=>'Location of safe chmod',
30 desc
=>'Location of safe cpio',
35 desc
=>'Location of safe dirname',
40 desc
=>'Location of safe egrep',
45 desc
=>'Location of safe find',
50 desc
=>'Location of safe mkdir',
55 desc
=>'Location of safe perl',
60 desc
=>'Location of safe rm',
65 desc
=>'Location of safe tee',
70 desc
=>'Location of safe which',
75 chomp ($MY_DIR = `pwd`);
76 $MY_GRESS = "$MY_DIR/helpers";
77 # Describes the files that need to be configured.
79 { init
=>sub {qq(INSTALL_DIR
= $CFGS{installdir
}\n)} },
80 'src/PrestConfig.pm'=>
81 { init
=>sub { << "EOS" } },
83 \
$DEFAULTCSS = "$CFGS{defaultcss}";
84 \
$SAFE_PERL = "$CFGS{perl}/perl";
87 { init
=>sub { << "EOS"} },
88 \
$SAFE_PERL = "$CFGS{perl}/perl";
89 \
$PERL_FLAGS = "@{[$CFGS{taint} =~ /^y/i ? '-T' : '']}";
91 'helpers/src/gresslib/copyfiles/Makefile'=>
92 { init
=>sub { "GRESS_DIR = $MY_GRESS\n" } },
93 'helpers/src/gresslib/copyfiles/Makefile.master'=>
94 { init
=>sub { "GRESS_DIR = $MY_GRESS\n" } },
95 'helpers/src/gress/gen_gress.prl'=>
96 { init
=>sub { << "EOS" } },
98 \
$PATH_REQ = "${\compute_path()}";
101 'helpers/src/gress/diffre.prl'=>
102 { init
=>sub {qq(\#
!$CFGS{perl
}/perl
\n)} },
104 'helpers/src/gress/run_gress.prl'=>
105 { init
=>sub { << "EOS" } },
107 \
$TEE_PATH = "$CFGS{tee}";
109 'tests/prest/Makefile'=>
110 { init
=>sub {qq(GRESS_DIR
= $MY_GRESS\n)} },
113 join('', `cat helpers/src/gresslib/copyfiles/Makefile.master`)
116 { init
=>sub { << "EOS" } },
117 GRESS_DIR
= $MY_GRESS
118 PERL
= $CFGS{perl
}/perl
122 # Describes the list of instructions.
123 @INSTRUCTIONS = ('make all',
130 return !($_[0] =~ s/^y.*/Yes/i || $_[0] =~ s/^n.*/No/i);
137 foreach $env (keys %envs) {
138 next unless $envs{$env}{exec};
139 $path{$CFGS{$env}} = 1;
141 return join(":",sort keys %path);
144 # If present, a WRAPUP subroutine gets called at the end.
146 # print "Configuring from $CFGS{gress}/lib/copyfiles/Makefile.master into tests/Makefile\n";
147 # system ("cp -f $CFGS{gress}/lib/copyfiles/Makefile.master tests/Makefile");