[Templates] Imminent developer release 2.10a
Axel Gerstmair
Axel Gerstmair <anthill@web.de>
Wed, 8 Oct 2003 21:10:04 +0200
Hi Andy,
> I'm putting together a new developer release, 2.10a.
I've just checked out the latest CVS version and found a small error
in Makefile.PL. You bumped the version number of the prerequisite
"AppConfig" but missed the other numbers further below. In order to
prevent such mistakes in the future I wrote a small patch that defines
the version numbers of all required modules at one place.
Besides that, all tests passed on Win XP (although without XS stash,
DBI tests, XML::DOM, LaTeX, and XML::RSS)!
I'm looking forward to the new release...
Best regards,
Axel
Index: Makefile.PL
===================================================================
RCS file: /template-toolkit/Template2/Makefile.PL,v
retrieving revision 2.41
diff -u -w -b -r2.41 Makefile.PL
--- Makefile.PL 2003/10/08 11:25:16 2.41
+++ Makefile.PL 2003/10/08 18:55:52
@@ -166,6 +166,12 @@
};
+# define version numbers of required modules
+my $TT_APPCONFIG_VERSION = '1.55';
+my $TT_FILE_SPEC_VERSION = '0.8';
+my $TT_FILE_TEMP_VERSION = '0.12';
+
+
#========================================================================
welcome_message();
@@ -243,9 +249,9 @@
'PMLIBDIRS' => [ 'lib' ],
'DIR' => [ ],
'PREREQ_PM' => {
- 'AppConfig' => 1.55,
- 'File::Spec' => 0.8,
- 'File::Temp' => 0.12,
+ 'AppConfig' => $TT_APPCONFIG_VERSION,
+ 'File::Spec' => $TT_FILE_SPEC_VERSION,
+ 'File::Temp' => $TT_FILE_TEMP_VERSION,
},
'dist' => {
'COMPRESS' => 'gzip',
@@ -360,10 +366,10 @@
sub mandatory_modules {
eval "use AppConfig";
- if ($@ or $AppConfig::VERSION < 1.52) {
+ if ($@ or $AppConfig::VERSION < $TT_APPCONFIG_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the AppConfig module (version 1.52
+The Template Toolkit requires that the AppConfig module (version $TT_APPCONFIG_VERSION
or later) first be installed. This is used by the 'ttree' program for
reading command line options and configuration files. It is available
from CPAN:
@@ -374,10 +380,10 @@
}
eval "use File::Spec";
- if ($@ or $File::Spec::VERSION < 0.8) {
+ if ($@ or $File::Spec::VERSION < $TT_FILE_SPEC_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the File::Spec module (version 0.8
+The Template Toolkit requires that the File::Spec module (version $TT_FILE_SPEC_VERSION
or later) first be installed. This is used by the File plugin. It is
available from CPAN:
@@ -387,10 +393,10 @@
}
eval "use File::Temp";
- if ($@ or $File::Temp::VERSION < 0.12) {
+ if ($@ or $File::Temp::VERSION < $TT_FILE_TEMP_VERSION) {
warn(<<EOF);
-The Template Toolkit requires that the File::Temp module (version 0.12
+The Template Toolkit requires that the File::Temp module (version $TT_FILE_TEMP_VERSION
or later) first be installed. This is used by the Template::Document
class for storing compiled templates. It is available from CPAN: