Changeset 37447 for other-projects


Ignore:
Timestamp:
2023-03-08T20:03:56+13:00 (14 months ago)
Author:
anupama
Message:

Forgot to commit last evening. When PDFBox is set up for GS2, we need to activate the PDFv2Plugin used by the tutorials, by changing file ext from .tmp to .pm again. This was committed for gen_model_collections script yesterday when generating model collections, and also needs to be done for checking out GS2 and building test collections (this commit).

File:
1 edited

Legend:

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

    r36850 r37447  
    653653        exit -1; # or proceed to testing other tutorials?
    654654    }
     655    else { # successfully set up pdfbox
     656       
     657        # For GS2, need to activate PDFv2Plugin to be able to use pdfbox, by renaming plugin from .tmp to .pm
     658       
     659        my $pdfv2plugin_fileprefix = "$greenstone_home$sep/perrlib/plugins/PDFv2Plugin";       
     660        if ($install_version eq "2" && -f "$pdfv2plugin_fileprefix.tmp") {
     661        print STDERR "@@@ Renaming PDFv2Plugin.tmp for GS2 to .pm now PDFBox successfully installed.\n";
     662        move("$pdfv2plugin_fileprefix.tmp", "$pdfv2plugin_fileprefix.pm");
     663        }
     664    }
    655665}
    656666
Note: See TracChangeset for help on using the changeset viewer.