aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xPerl/export2cpan3
1 files changed, 2 insertions, 1 deletions
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");