# This is a -*- perl -*- script


$ScriptPath="$ENV{'MWHOME'}/../sms";
$SystemDBfile = "$ScriptPath/kb_systemid.txt";
$ExelRequireFile="$ScriptPath/platform_requirements.csv";
$TxtRequireFile="/tmp/kb_requirements.txt";
$PatchDBfile = "$ScriptPath/kb_patchid.txt";
$ExelSolutionFile="$ScriptPath/solution-database.csv";
$TxtSolutionFile="/tmp/kb_solution.txt";
$PatchConfigFile="$ScriptPath/patchconfig.txt";
$PatchDescFile="$ScriptPath/patchdesc.txt";

$host=`uname -n`;
$host =~ s/\n//;
$counter=0; # for logfile number
if ( ! -d "$ENV{'HOME'}/.mw/sms" ){
    mkdir("$ENV{'HOME'}/.mw",0777);
    mkdir("$ENV{'HOME'}/.mw/sms",0777);
}
if( -f "$ENV{'HOME'}/.mw/sms/count"){ # the .count file consist the number of the last logfile
    $counter=`cat $ENV{'HOME'}/.mw/sms/count`;
}
$counter+=1;
open(COUNTFILE,">$ENV{'HOME'}/.mw/sms/count") || print STDOUT "Cannot open $ENV{'HOME'}/.mw/sms/count file : $!\n";
print COUNTFILE "$counter";
close(COUNTFILE);
$logfile="$ENV{'HOME'}/.mw/sms/CheckInstallation.log.$host.$counter";
$CompilerDBFile="$ScriptPath/kb_compiler.txt";
#$ConfigFile="$ENV{'HOME'}/sms_config";
$config="$ScriptPath/config.ini";
$ExecCommandFile="/tmp/exec_command";
%PatchFiles=(Solaris => "ssol25ts.gz",  HP-UX => "hpux10ts.gz" ,Irix => "irix62ts.gz", AIX => "rsaix4ts.gz",Tru64 => "tru64ts.gz");
  

