Permalink
Browse files

* applied patch from Axel Gerstmair to add TT_EXTRAS option to Makefi…

…le.PL

git-svn-id: svn://svn.tt2.org/tt/Template2/trunk@684 d5a88997-0a34-4036-9ed2-92fb5d660d91
  • Loading branch information...
1 parent 17e69fa commit ea05afc072a667ef3eba9154c6909433b9a269a5 @abw committed Apr 29, 2003
Showing with 7 additions and 6 deletions.
  1. +7 −6 Makefile.PL
View
@@ -14,7 +14,7 @@ $| = 1;
select STDOUT;
use vars qw( $TT_VERSION $TT_PREFIX $TT_IMAGES $TT_RUN_DBI
- $TT_BUILD_DOCS $TT_SPLASH_DOCS $TT_EXAMPLES
+ $TT_BUILD_DOCS $TT_SPLASH_DOCS $TT_EXAMPLES $TT_EXTRAS
$TT_LATEX_ENABLE $TT_LATEX_PATH $TT_PDFLATEX_PATH $TT_DVIPS_PATH
$TT_XS_ENABLE $TT_XS_DEFAULT
$TT_SPLASH_THEME $TT_QUIET $TT_ACCEPT $TT_YES );
@@ -69,6 +69,7 @@ arguments to 'perl Makefile.PL'. e.g.
TT_SPLASH use Splash! for docs (y)
TT_THEME Splash! theme (default)
TT_EXAMPLES build HTML examples (y)
+ TT_EXTRAS install optional extras (y)
TT_XS_ENABLE Enable XS Stash (y)
TT_XS_DEFAULT Use XS Stash by default (y)
TT_DBI run DBI tests (y if DBI installed)
@@ -102,6 +103,7 @@ $TT_RUN_DBI = 'y';
$TT_BUILD_DOCS = 'y';
$TT_SPLASH_DOCS = 'y';
$TT_EXAMPLES = 'y';
+$TT_EXTRAS = 'y';
$TT_SPLASH_THEME = 'default';
$TT_XS_ENABLE = 'y';
$TT_XS_DEFAULT = 'y';
@@ -138,14 +140,15 @@ $TT_RUN_DBI = $ttconfig{ TT_DBI } if defined $ttconfig{ TT_DBI
$TT_BUILD_DOCS = $ttconfig{ TT_DOCS } if defined $ttconfig{ TT_DOCS };
$TT_SPLASH_DOCS = $ttconfig{ TT_SPLASH } if defined $ttconfig{ TT_SPLASH };
$TT_EXAMPLES = $ttconfig{ TT_EXAMPLES } if defined $ttconfig{ TT_EXAMPLES };
+$TT_EXTRAS = $ttconfig{ TT_EXTRAS } if defined $ttconfig{ TT_EXTRAS };
$TT_LATEX_ENABLE = $ttconfig{ TT_LATEX } if defined $ttconfig{ TT_LATEX };
$TT_XS_ENABLE = $ttconfig{ TT_XS_ENABLE } if defined $ttconfig{ TT_XS_ENABLE };
$TT_XS_DEFAULT = $ttconfig{ TT_XS_DEFAULT } if defined $ttconfig{ TT_XS_DEFAULT };
$TT_QUIET = $ttconfig{ TT_QUIET } if defined $ttconfig{ TT_QUIET };
$TT_ACCEPT = $ttconfig{ TT_ACCEPT } if defined $ttconfig{ TT_ACCEPT };
foreach ($TT_RUN_DBI, $TT_BUILD_DOCS, $TT_SPLASH_DOCS, $TT_EXAMPLES,
- $TT_LATEX_ENABLE, $TT_XS_ENABLE, $TT_XS_DEFAULT ) {
+ $TT_EXTRAS, $TT_LATEX_ENABLE, $TT_XS_ENABLE, $TT_XS_DEFAULT ) {
$_ = 'n' if ! $_;
}
$TT_ACCEPT = 0 if $TT_ACCEPT eq 'n';
@@ -271,15 +274,13 @@ if ($ExtUtils::MakeMaker::VERSION >= 5.43) {
WriteMakefile( %opts );
-if ($WIN32) {
print <<EOF;
Configuration complete. You should now run '$MAKE', '$MAKE test' and
then '$MAKE install'. See the README file for further information.
EOF
-}
-message(<<EOF) if $TT_BUILD_DOCS;
+message(<<EOF) if $TT_PREFIX;
Installation Notes
@@ -603,7 +604,7 @@ specify a separate directory for them.
EOF
- if (ttprompt('Do you want to install these components?', 'y') =~ /^y/i) {
+ if (ttprompt('Do you want to install these components?', $TT_EXTRAS) =~ /^y/i) {
message(<<EOF);
You can chose any directory for the installation of the additional

0 comments on commit ea05afc

Please sign in to comment.