diff -r 9fc39012235a -r caeacd144013 tools/buildbot/package.pl --- a/tools/buildbot/package.pl Sat Sep 06 12:19:33 2008 +0000 +++ b/tools/buildbot/package.pl Sat Sep 06 13:04:54 2008 +0000 @@ -5,12 +5,21 @@ use File::Basename; use Net::FTP; -my ($ftp_host, $ftp_user, $ftp_pass, $ftp_path); +my ($ftp_file, $ftp_host, $ftp_user, $ftp_pass, $ftp_path); + +$ftp_file = shift; -$ftp_host = shift; -$ftp_user = shift; -$ftp_pass = shift; -$ftp_path = shift; +open(FTP, $ftp_file) or die "Unable to read FTP config file $ftp_file: $!\n"; +$ftp_host = ; +$ftp_user = ; +$ftp_pass = ; +$ftp_path = ; +close(FTP); + +chomp $ftp_host; +chomp $ftp_user; +chomp $ftp_pass; +chomp $ftp_path; my ($myself, $path) = fileparse($0); chdir($path);