aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlecoanet2005-05-16 12:27:51 +0000
committerlecoanet2005-05-16 12:27:51 +0000
commit09e37ffea9f0871dc8396a0a10b68fd0561e1930 (patch)
treec2a0380130421f5a02cf9e3c1a4e7d3bc5e79909
parent3cc7e6d2e10c4398eb1959ee289d9398e0f1cb51 (diff)
downloadtkzinc-09e37ffea9f0871dc8396a0a10b68fd0561e1930.zip
tkzinc-09e37ffea9f0871dc8396a0a10b68fd0561e1930.tar.gz
tkzinc-09e37ffea9f0871dc8396a0a10b68fd0561e1930.tar.bz2
tkzinc-09e37ffea9f0871dc8396a0a10b68fd0561e1930.tar.xz
Reverted to the old method for updating the version number in Zinc.pm and Makefile.PL (using export2cpan).
-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");