+print "Creating $pattar_file ...\n";
+system "fakeroot tar chzf $pattar_file rsync-$version/patches; rm -rf rsync-$version";
+
+print "Updating the other files in $dest ...\n";
+system "rsync -a README NEWS OLDNEWS TODO $dest";
+unlink($news_file);
+link("$dest/NEWS", $news_file);
+system "git log --name-status | gzip -9 >$dest/ChangeLog.gz";
+
+system "yodl2html -o $dest/rsync.html rsync.yo";
+system "yodl2html -o $dest/rsyncd.conf.html rsyncd.conf.yo";
+
+foreach my $fn ($srctar_file, $pattar_file, $diff_file) {
+ unlink("$fn.asc");
+ open(GPG, '|-', "gpg --batch --passphrase-fd=0 -ba $fn") or die $!;
+ print GPG $passphrase, "\n";
+ close GPG;