diff options
author | Wayne Davison <wayned@samba.org> | 2006-02-20 19:58:06 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-02-20 19:58:06 +0000 |
commit | 4d8639eb2d92facd482523465ea0fbffcddfc2ed (patch) | |
tree | dfc72a296688cff21d3bf662bade6c6911ec6e41 /packaging | |
parent | 519c8de16f8bc738f1b10178b7b2f68ffb4bb8bb (diff) | |
download | rsync-4d8639eb2d92facd482523465ea0fbffcddfc2ed.tar.gz rsync-4d8639eb2d92facd482523465ea0fbffcddfc2ed.tar.bz2 rsync-4d8639eb2d92facd482523465ea0fbffcddfc2ed.zip |
A few more tweaks and fixes.
Diffstat (limited to 'packaging')
-rwxr-xr-x | packaging/release-rsync | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/packaging/release-rsync b/packaging/release-rsync index 28bd8c85..e70691e5 100755 --- a/packaging/release-rsync +++ b/packaging/release-rsync @@ -31,12 +31,14 @@ my $note = <<EOT; EOT my $live = shift; +my $skipping = ''; if ($live) { print "This will release a new version of rsync onto an unsuspecting world.\n"; } else { print "**** TESTMODE **** (add \"live\" arg to avoid this)\n"; $dest =~ s#([^/]+$)#tmp/$1#; + $skipping = ' ** SKIPPING **'; } die "$dest does not exist\n" unless -d $dest; @@ -170,8 +172,8 @@ system "cvs -q diff | egrep -v '^(===============|RCS file: |retrieving revision print <<EOT; About to: - - "cvs commit" all changes - - "cvs tag" this release as $cvstag + - "cvs commit" all changes$skipping + - "cvs tag" this release as $cvstag$skipping EOT if ($live) { @@ -181,15 +183,15 @@ if ($live) { system "cvs commit -m 'Preparing for release of $version'"; system "cvs tag -F $cvstag ."; } else { - print "**** Skipping cvs commit and tagging in TESTMODE ****\n"; + print "** Skipping prompt in TESTMODE **\n"; } print <<EOT; About to do the following in the samba-rsync-ftp dir: - change the diffs in the patches dir to include generated files - - move the old tar/diff files into the appropriate old-* dir - - hard-link the new tar/diff files to the old on samba.org + - move the old tar/diff files into the appropriate old-* dirs + - hard-link the new tar/diff files to the old files on samba.org$skipping - create release tar "$tarfile" - create release diffs - update README, *NEWS, TODO, and cvs.log @@ -223,11 +225,13 @@ if ($diffdir ne $dest) { if ($version !~ /pre/) { foreach my $fn (glob('rsync*.tar.gz*'), glob('rsync*-NEWS')) { + next if $fn =~ /^rsync.*pre/; link($fn, "old-versions/$fn") or die $!; push(@moved_files, $fn); } foreach my $fn (glob('rsync*.diffs.gz*')) { + next if $fn =~ /^rsync.*pre/; link($fn, "old-patches/$fn") or die $!; push(@moved_files, $fn); } @@ -262,7 +266,7 @@ system "rsync -a $cvsroot/CVSROOT/rsync.updates $dest/cvs.log"; system "yodl2html -o $dest/rsync.html rsync/rsync.yo"; system "yodl2html -o $dest/rsyncd.conf.html rsync/rsyncd.conf.yo"; -system "rm -rf rsync rsync-$version rsync-$lastversion"; +system "rm -rf rsync rsync-*"; if ($live) { chdir($dest) or die $!; |