diff options
author | lecoanet | 2005-05-16 15:10:52 +0000 |
---|---|---|
committer | lecoanet | 2005-05-16 15:10:52 +0000 |
commit | bf620992ece484c11db8d234e6201d1a34e176fb (patch) | |
tree | 0cb09d5a5f4f23da5ceb3502dae074652067a021 /Perl/export2cpan | |
parent | 6560f76615e6eed56faf7647d4d961f1fb3f0f92 (diff) | |
download | tkzinc-bf620992ece484c11db8d234e6201d1a34e176fb.zip tkzinc-bf620992ece484c11db8d234e6201d1a34e176fb.tar.gz tkzinc-bf620992ece484c11db8d234e6201d1a34e176fb.tar.bz2 tkzinc-bf620992ece484c11db8d234e6201d1a34e176fb.tar.xz |
Fixed a bug when updating Zinc version in Makefile.PL
Diffstat (limited to 'Perl/export2cpan')
-rwxr-xr-x | Perl/export2cpan | 3 |
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"); |