umask(0022);
-my $Version = "2.0.0_CVS";
-my $ReleaseDate = "18 Jan 2003";
+my $Version = "2.0.0";
+my $ReleaseDate = "14 Jun 2003";
my $DistDir = "dist/BackupPC-$Version";
my @PerlSrc = qw(
lib/BackupPC/Attrib.pm
lib/BackupPC/FileZIO.pm
lib/BackupPC/Lib.pm
+ lib/BackupPC/Lang/de.pm
lib/BackupPC/Lang/en.pm
+ lib/BackupPC/Lang/es.pm
lib/BackupPC/Lang/fr.pm
lib/BackupPC/PoolWrite.pm
lib/BackupPC/View.pm
conf/hosts
init.d/README
init.d/src/debian-backuppc
+ init.d/src/gentoo-backuppc
+ init.d/src/gentoo-backuppc.conf
init.d/src/linux-backuppc
init.d/src/solaris-backuppc
+ init.d/src/suse-backuppc
doc/BackupPC.pod
doc/BackupPC.html
README
} 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}) ) {
my $errors;
my $vars = {};
- open(F, "cgi-bin/BackupPC_Admin")
- || die("can't open cgi-bin/BackupPC_Admin\n");
- while ( <F> ) {
- s/\$Lang->{([^}]*)}/$vars->{$1} = 1;/eg;
+ 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;
+ }
+ close(F);
}
- close(F);
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{([^}]*)}/