X-Git-Url: https://mattmccutchen.net/rsync/rsync.git/blobdiff_plain/200f2d98db38f46644f2736a305b37892d11491c..4cf94b8a01400d21cd0b1a22db7789ba84908775:/packaging/release-rsync diff --git a/packaging/release-rsync b/packaging/release-rsync index f63f3a73..dc892457 100755 --- a/packaging/release-rsync +++ b/packaging/release-rsync @@ -67,7 +67,7 @@ while () { chdir('rsync') or die $!; my($version, $lastversion); -open(IN, 'configure.in') or die $!; +open(IN, '<', 'configure.in') or die $!; while () { if (/^RSYNC_VERSION=(.*)/) { $version = $lastversion = $1; @@ -76,7 +76,13 @@ while () { } close IN; -$lastversion =~ s/(\d+)cvs$/ $1 - 1 /e; +if ($lastversion =~ /cvs$/) { + open(IN, '<', 'OLDNEWS') or die $!; + $_ = ; + close IN; + ($lastversion) = /(\d+\.\d+\.\d+)/; +} + $version =~ s/cvs/pre1/ || $version =~ s/pre(\d+)/ 'pre' . ($1 + 1) /e; print $break, "\nPlease enter the version number of this release: [$version] "; @@ -130,8 +136,9 @@ print "\n", $break, <', $fn) or die $!; print OUT $_; close OUT; } -system "yodl2man -o rsync.1 rsync.yo"; -system "yodl2man -o rsyncd.conf.5 rsyncd.conf.yo"; -#system "perl -pi -e \"s/\\\\\\'/\\\\&'/g\" rsync.1 rsyncd.conf.5"; +system "yodl2man -o rsync.1 rsync.yo; ./tweak_manpage rsync.1"; +system "yodl2man -o rsyncd.conf.5 rsyncd.conf.yo; ./tweak_manpage rsyncd.conf.5"; mkdir('patches/tmp') or die $!; system "rsync -a --exclude=patches/ --exclude-from=.cvsignore . patches/tmp/cvsdir/"; @@ -214,7 +227,7 @@ print $break, <