From bf620992ece484c11db8d234e6201d1a34e176fb Mon Sep 17 00:00:00 2001 From: lecoanet Date: Mon, 16 May 2005 15:10:52 +0000 Subject: Fixed a bug when updating Zinc version in Makefile.PL --- Perl/export2cpan | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'Perl') diff --git a/Perl/export2cpan b/Perl/export2cpan index 61b5f2b..e0572b3 100755 --- a/Perl/export2cpan +++ b/Perl/export2cpan @@ -48,6 +48,7 @@ sub version4cpan { close (FD); + print "PATCHLEVEL: $patchlevel\n"; return sprintf ("%d.%d%02d", $major,$minor,$patchlevel); } @@ -157,7 +158,7 @@ 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;"); +&filesubst ('Makefile.PL', "$EXPORT_DIR/$VERSION_DIR/Makefile.PL", '^my \$VERSION *=.*;', "\$VERSION = $VERSION;"); system("$CP ../Copyright $EXPORT_DIR/$VERSION_DIR"); system("$CP ../generic/*.c $EXPORT_DIR/$VERSION_DIR"); -- cgit v1.1