aboutsummaryrefslogtreecommitdiff
path: root/Perl
diff options
context:
space:
mode:
Diffstat (limited to 'Perl')
-rw-r--r--Perl/Makefile.PL (renamed from Perl/Makefile.PL.in)3
-rw-r--r--Perl/Zinc.pm (renamed from Perl/Zinc.pm.in)3
-rwxr-xr-xPerl/export2cpan2
3 files changed, 5 insertions, 3 deletions
diff --git a/Perl/Makefile.PL.in b/Perl/Makefile.PL
index fed7348..d731648 100644
--- a/Perl/Makefile.PL.in
+++ b/Perl/Makefile.PL
@@ -8,7 +8,7 @@ use strict;
my $TkLibDir = $Tk::library;
my $platform = $Tk::platform;
-my $VERSION = '@MAJOR_VERSION@.@MINOR_VERSION@@PATCHLEVEL@';
+my $VERSION = SEEexport2cpan;
if (!$TkLibDir)
@@ -135,3 +135,4 @@ sub get_flags {
# For the demo
#
# perl -Mblib demos/zinc-demos
+
diff --git a/Perl/Zinc.pm.in b/Perl/Zinc.pm
index 0863458..fa55c55 100644
--- a/Perl/Zinc.pm.in
+++ b/Perl/Zinc.pm
@@ -14,7 +14,7 @@ Construct Tk::Widget 'Zinc';
use vars qw($VERSION $REVISION);
$REVISION = q$Revision$ ; # this line is automagically modified by CVS
-$VERSION = '@MAJOR_VERSION@.@MINOR_VERSION@@PATCHLEVEL@';
+$VERSION = SEEexport2cpan;
bootstrap Tk::Zinc $Tk::VERSION;
@@ -155,3 +155,4 @@ API for Texture Mapped Text' and is copyrighted by Mark Kilgard under an open so
L<Tk(1)>, L<zinc-demos(1)>.
=cut
+
diff --git a/Perl/export2cpan b/Perl/export2cpan
index cb17bd8..61b5f2b 100755
--- a/Perl/export2cpan
+++ b/Perl/export2cpan
@@ -157,9 +157,9 @@ foreach my $f (@files) {
# modifying the $VERSION of Zinc.pm with the correctly perl formated version scheme.
&filesubst ('Zinc.pm', "$EXPORT_DIR/$VERSION_DIR/Zinc.pm", '^\$VERSION *=.*;', "\$VERSION = $VERSION;");
+&filesubst ('Makefile.PL', "$EXPORT_DIR/$VERSION_DIR/Makefile.PL", '^\$VERSION *=.*;', "\$VERSION = $VERSION;");
system("$CP ../Copyright $EXPORT_DIR/$VERSION_DIR");
-system("$CP Makefile.PL $EXPORT_DIR/$VERSION_DIR");
system("$CP ../generic/*.c $EXPORT_DIR/$VERSION_DIR");
system("$CP ../generic/*.h $EXPORT_DIR/$VERSION_DIR");
system("$CP ../win/*.c $EXPORT_DIR/$VERSION_DIR");