#!/usr/bin/perl use strict; use warnings; use English; =pod =head1 DESCRIPTION new-release - the Business::Shipping release script. =head1 RELEASE STEPS # Remove the old tars rm -f Business-Shipping-*.tar.gz # Test it make test # Update the verision in Makefile.PL (if you haven't already) vi Makefile.PL # Update the CHANGELOG cvs diff | more vi CHANGELOG # Update the README make readme # Commit to CVS cvs commit # Upload to server. make tardist doc/new-release Business-Shipping-*.tar.gz # Update the versions in Makefile.PL and CHANGELOG =cut my ( $file ) = @ARGV; print "Usage: $PROGRAM_NAME Business-Shipping-n.nn.tar.gz\n" and exit unless $file; $file =~ m/^(Business-Shipping-\d\.\d\d)\.tar\.gz$/; my $version = $1; print "version = $version\n"; print "file=$file\n"; myexec( "scp $file kavod\@kavod\.com:html/" ); my $cmd = qq{ssh kavod\@kavod\.com \<\ .version EOF }; myexec( $cmd ); sub myexec { my $cmd = shift; print "Going to execute \"$cmd\"...\n"; return system ( $cmd ); }