Changeset 28605


Ignore:
Timestamp:
2013-11-05T19:15:21+13:00 (10 years ago)
Author:
ak19
Message:

Getting IsisGdl for 64 bit linux machines, so that the new CDS-ISIS model tutorial collection (to be committed) can be built.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/task.pl

    r28572 r28605  
    452452        exit -1;
    453453    }
     454
     455    &getIsisGdl("$ENV{'DATA_DIR'}/$gsdl/bin/linux");
    454456   
    455457    # set the path to the greenstone_home variable                             
     
    483485        exit -1; # or proceed to testing other tutorials?
    484486    }
     487}
     488
     489sub getIsisGdl {
     490    my $bin_lin_folder = shift(@_);
     491   
     492    if(!$isWin && !$isMac) {
     493    my $bit_arch=`uname -m`;
     494    if ($bit_arch =~ m/64$/) {
     495        my $cmd = "cd $bin_lin_folder && wget http://www.greenstone.org/caveat-emptor/IsisGdl.bin32 && mv IsisGdl.bin32 IsisGdl && chmod u+x IsisGdl";
     496        my $isis_status = system $cmd;
     497        if($isis_status != 0) {
     498        print STDERR "Unable to get IsisGdl.bin32 from caveat page\n";
     499        }
     500    }
     501    }
    485502}
    486503
     
    504521        &getPDFBox();
    505522    }
     523
     524    &getIsisGdl("$greenstone_home/bin/linux");
    506525
    507526    open (my $xml_fh, '>'.$xmlout) || die "Could not open xml file $xmlout for appending: $!\n";
Note: See TracChangeset for help on using the changeset viewer.