Changeset 34941


Ignore:
Timestamp:
2021-02-28T23:06:44+13:00 (3 years ago)
Author:
kjdon
Message:
  1. Kathy's changes for working with the updated ID file to upload to the new greenstone.org machine. 2. Fixes for supporting http to https changes when wget downloads PDFbox and oppenoffice. Mainly need --no-check-certificate passed to the GS compiled wget, which got diffcol to work again on the linux machine.
File:
1 edited

Legend:

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

    r34520 r34941  
    4343}
    4444
     45# we're using a GS compiled up wget with https support (at release-kits/bin, on PATH)
     46# But we may need to use --no-check-certificate for some https urls.
     47my $wget = "wget --no-check-certificate";
    4548
    4649my $sep = $isWin ? "\\" : "/";
     
    609612{   
    610613    # current revision is 27763, but using "head" works
    611     my $PDFBOX_TRAC_URL="http://trac.greenstone.org/export/head/gs2-extensions/pdf-box/trunk/pdf-box-java"; # both for .zip and .tar.gz extension
     614    my $PDFBOX_TRAC_URL="https://trac.greenstone.org/export/head/gs2-extensions/pdf-box/trunk/pdf-box-java"; # both for .zip and .tar.gz extension
    612615    #"http://trac.greenstone.org/export/".$ENV{'SVN_OPT_REV'}."/gs2-extensions/pdf-box/trunk/pdf-box-java";
    613616
     
    618621    my $cmd = "";
    619622    if ($isWin) {
    620         $cmd = "setup.bat && cd ext && wget $PDFBOX_TRAC_URL.zip && unzip pdf-box-java.zip";
     623        $cmd = "setup.bat && cd ext && $wget $PDFBOX_TRAC_URL.zip && unzip pdf-box-java.zip";
    621624       
    622625    } elsif ($isMac) { # need to use curl not wget
     
    624627    }
    625628    else { # linux
    626         $cmd = "bash -c \"export GSDLHOME=&& source setup.bash && cd ext && wget $PDFBOX_TRAC_URL.tar.gz && tar -xzf pdf-box-java.tar.gz\"";
     629        $cmd = "bash -c \"export GSDLHOME=&& source setup.bash && cd ext && $wget $PDFBOX_TRAC_URL.tar.gz && tar -xzf pdf-box-java.tar.gz\"";
    627630    }
    628631    my $status = system $cmd;
     
    636639{   
    637640    # current revision is 27763, but using "head" works
    638     my $OOEXT_TRAC_URL="http://trac.greenstone.org/export/head/gs2-extensions/open-office/trunk/open-office-java"; # both for .zip and .tar.gz extension
     641    my $OOEXT_TRAC_URL="https://trac.greenstone.org/export/head/gs2-extensions/open-office/trunk/open-office-java"; # both for .zip and .tar.gz extension
    639642    #"http://trac.greenstone.org/export/".$ENV{'SVN_OPT_REV'}."/gs2-extensions/open-office/trunk/open-office-java";
    640643
     
    645648    my $cmd = "";
    646649    if ($isWin) {
    647         $cmd = "setup.bat && cd ext && wget $OOEXT_TRAC_URL.zip && unzip open-office-java.zip";
     650        $cmd = "setup.bat && cd ext && $wget $OOEXT_TRAC_URL.zip && unzip open-office-java.zip";
    648651       
    649652    } elsif ($isMac) { # need to use curl not wget
     
    651654    }
    652655    else { # linux
    653         $cmd = "bash -c \"export GSDLHOME=&& source setup.bash && cd ext && wget $OOEXT_TRAC_URL.tar.gz && tar -xzf open-office-java.tar.gz\"";
     656        $cmd = "bash -c \"export GSDLHOME=&& source setup.bash && cd ext && $wget $OOEXT_TRAC_URL.tar.gz && tar -xzf open-office-java.tar.gz\"";
    654657    }
    655658    my $status = system $cmd;
     
    669672        my $cmd = "";
    670673         if($isMac) {
    671              $cmd = "cd $gsfolder/bin/darwin && curl http://www.greenstone.org/caveat-emptor/IsisGdl.macleopard > IsisGdl && chmod u+x IsisGdl";
     674             $cmd = "cd $gsfolder/bin/darwin && curl https://www.greenstone.org/caveat-emptor/IsisGdl.macleopard > IsisGdl && chmod u+x IsisGdl";
    672675         } else { # linux
    673              $cmd = "cd $gsfolder/bin/linux && wget http://www.greenstone.org/caveat-emptor/IsisGdl.bin32 && mv IsisGdl.bin32 IsisGdl && chmod u+x IsisGdl";
     676             $cmd = "cd $gsfolder/bin/linux && $wget https://www.greenstone.org/caveat-emptor/IsisGdl.bin32 && mv IsisGdl.bin32 IsisGdl && chmod u+x IsisGdl";
    674677         }
    675678        my $isis_status = system $cmd;
     
    11001103    $ENV{'IDENTITY_FILE_ED25519'} = "$ENV{'IDENTITY_DIR'}${sep}upload-" . $ENV{'SNAPSHOT_MODE'} ."-ed25519". ($^O eq "MSWin32" ? ".ppk" : "");
    11011104
    1102     if (-f $ENV{'IDENTITY_FILE_ED25519'}) {
     1105    if (-f $ENV{'IDENTITY_FILE_ED25519'}) {     
    11031106        # for now, upload a copy to the new new machine, later to replace puka
    1104         $command = "cd \"$ENV{'UPLOAD_DIR'}\" && tar -c *.htm* | "; #&& cat *.html | "; # && tar -c * |
     1107        my $command = "cd \"$ENV{'UPLOAD_DIR'}\" && tar -c *.htm* | "; #&& cat *.html | "; # && tar -c * |
    11051108        $command .= ($^O eq "MSWin32" ? "plink" : "ssh");
    11061109        $command .= " -T -i \"$ENV{'IDENTITY_FILE_ED25519'}\" nzdl-gsorg\@www-internal.greenstone.org";
    11071110        #print "$command\n";
    1108         $status = system("$command");
     1111        my $status = system("$command");
    11091112        if($status != 0) {
    11101113            print STDERR "*** Failed to upload test report to www-internal $status\n";
Note: See TracChangeset for help on using the changeset viewer.