#!/usr/bin/perl
+use FindBin qw($RealBin);
+require "$RealBin/../BuildFarmWeb.pl";
+
print "Content-Type: text/plain\n\n";
-print "Conf: /home/farm/server\n";
+print "Conf: $RealBin/../\n";
print `pwd`;
use FindBin qw($RealBin);
require "$RealBin/../BuildFarmWeb.pl";
-my $buildlogs = "/home/farm/server/buildlogs";
+my $buildlogs = "$RealBin/../buildlogs";
die "no dbname" unless $dbname;
die "no dbuser" unless $dbuser;
die $DBI::errstr unless $db;
my ($brhandle,@branches_of_interest);
-if (open($brhandle,"/home/farm/server/htdocs/branches_of_interest.txt"))
+if (open($brhandle,"$RealBin/../htdocs/branches_of_interest.txt"))
{
@branches_of_interest = <$brhandle>;
close($brhandle);
$del_sth->execute();
$del_recent_sth->execute();
-my $buildlogs = "/home/farm/server/buildlogs";
+my $buildlogs = "$RealBin/../buildlogs";
my @dirs = `find $buildlogs -mindepth 1 -type d -ctime +95`;
foreach my $dir (@dirs) {