umask(0022);
-my $Version = "2.0.0beta2";
-my $ReleaseDate = "13 Apr 2003";
+my $Version = "2.0.0";
+my $ReleaseDate = "14 Jun 2003";
my $DistDir = "dist/BackupPC-$Version";
my @PerlSrc = qw(
} else {
open(FILE, $file) || die("can't open $file for reading\n");
open(OUT, ">$dest") || die("can't open $dest for writing\n");
+ binmode(FILE);
+ binmode(OUT);
while ( <FILE> ) {
s/^# *Version \d+\.\d+[\.\w]*, released \d+ \w+ \d{4}\.?/# Version __VERSION__, released __RELEASEDATE__./;
s/__VERSION__/$Version/g;
sub config2pod
{
open(C, "conf/config.pl") || die("can't open conf/config.pl");
+ binmode(C);
my($str, $out, $getHdr, @conf);
my $first = 1;
while ( <C> ) {
my $errors;
open(F, $file) || die("can't open $file\n");
+ binmode(F);
if ( $check ) {
while ( <F> ) {
s/\$(self|bpc)->{Conf}{([^}\$]+)}/if ( !defined($vars->{$2}) ) {
foreach my $file ( qw(cgi-bin/BackupPC_Admin bin/BackupPC_sendEmail) ) {
open(F, $file) || die("can't open $file");
+ binmode(F);
while ( <F> ) {
s/\$Lang->{([^}]*)}/$vars->{$1} = 1;/eg;
}
foreach my $f ( <lib/BackupPC/Lang/*.pm> ) {
my $done = {};
open(F, $f) || die("can't open $f\n");
+ binmode(F);
while ( <F> ) {
s/#.*//g;
s/\$Lang{([^}]*)}/