(file) Return to make_jsoc.pl CVS log (file) (dir) Up to [Development] / JSOC

File: [Development] / JSOC / make_jsoc.pl (download)
Revision: 1.3, Fri Feb 15 18:36:22 2008 UTC (15 years, 1 month ago) by arta
Branch: MAIN
Changes since 1.2: +5 -0 lines
Bail on error

#!/usr/bin/perl -w 

# run this on each machine to be used.
#    n00 - for linux_ia32 machines such as n00, ..., n11, etc.
#    n12 - for linux_x86_64 machines

my($scriptpath) = $0;
print STDOUT "make of JSOC $scriptpath\n";
system("date");

my($wd);
$wd = $scriptpath;
if ($wd =~ /(.+)\/\S+$/)
{
    $wd = $1;
}
else
{
    print STDERR "Invalid make_jsoc.pl path; bailing!\n";
    exit(1);
}

chdir($wd);

# make clean 
# make -j 4 

if (-e "suflag.txt")
{
    system("make all dsds");
}
else
{
    system("make");
}

system("date");

Karen Tian
Powered by
ViewCVS 0.9.4