Esempio n. 1
0
 exit(1);
 }
 }
 print "Updating sources with svn update\n";
 if($tonight->svnUpdate() !== TRUE)
 {
 $error = "Error, could not svn Update the sources, aborting test\n";
 print $error;
 reportError($error,NULL);
 exit(1);
 }
 */
//TODO: remove all log files as sudo
// Step 2 make clean and make sources
print "Making sources\n";
if ($tonight->makeSrcs() !== TRUE) {
    $error = "There were Errors in the make of the sources examine make.out\n";
    print $error;
    reportError($error, 'make.out');
    exit(1);
}
//try to stop the scheduler before the make install step.
print "Stopping Scheduler before install\n";
if ($tonight->stopScheduler() !== TRUE) {
    $error = "Could not stop fossology-scheduler, maybe it wasn't running?\n";
    print $error;
    reportError($error, NULL);
}
// Step 4 install fossology
print "Installing fossology\n";
if ($tonight->makeInstall() !== TRUE) {