Changeset 38017


Ignore:
Timestamp:
2023-09-04T19:32:49+12:00 (8 months ago)
Author:
anupama
Message:

Some changes for GS3, some info statements, and need to skip rebuilding Word-PDF-Enhanced model collections if OS where models are built is linux.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh

    r37441 r38017  
    267267    collection=$1
    268268
     269    # Do not rebuild windows-specific collection(s) on non-windows OS
     270    # https://stackoverflow.com/questions/2172352/in-bash-how-can-i-check-if-a-string-begins-with-some-value
     271    if [ "x$GSDLOS" != "xwindows" ] && [ $collection == Word-PDF-Enhanced* ]; then
     272    return;
     273    fi
     274   
    269275    #escape the filename (in case of space) and get just the basename
    270276    collection=$(get_col_basename $collection)
     
    556562    source ./gs3-setup.sh
    557563    cd "$GSDL3SRCHOME/web/sites/localsite"
     564    echo "PERL_PERTURB_KEYS is $PERL_PERTURB_KEYS"
     565    echo "PERL_HASH_SEED is $PERL_HASH_SEED"
     566    #exit 1
    558567    elif [ -e setup.bash ]; then
    559568    source ./setup.bash
     
    599608fi
    600609# for GS2 need to make PDFv2Plugin.tmp functional, now that we have pdfbox
    601 if [ -e "$GSDLHOME/ext/pdf-box" ]; then
     610if [ -e "$GSDLHOME/ext/pdf-box" ] && [ "x$GSDL3SRCHOME" == "x" ]; then
    602611    if [ -e "$GSDLHOME/perllib/plugins/PDFv2Plugin.tmp" ]; then
    603612    echo "** Renaming PDFv2Plugin.tmp to PDFv2Plugin.pm to work with pdf-box"
     
    681690    #for each collection, import, build, move building to index
    682691    for collection in collect/*; do
    683     build_single_collection $collection;
    684 
    685     if [ "x$mode" != "x" ]; then
    686         #svn_process_single_collection $collection
    687 
    688         if [ "x$mode" == "xsvnupdate" ]; then
    689         update_single_collection $collection
    690         elif [ "x$mode" == "xsvnaddnew" ]; then
    691         svn_add_new_collection $collection
    692         fi
    693     fi
    694     done
    695 
    696     # having rebuilt all the collections, just the processing for svndelete remains:
    697     if [ "x$mode" == "xsvndelete" ]; then
    698     svn_delete
    699     fi
    700 
    701 else
    702     # Command-line args are a list of collections,
    703     # process each command-line arg, after confirming such a collection exists
    704 
    705     for collection in "$@"; do
    706     collection=collect/$collection
    707     if test -e $collection; then   
     692
     693    if [ "x$GSDLOS" = "xwindows" ] || [ $collection != Word-PDF-Enhanced* ]; then
     694       
    708695        build_single_collection $collection;
    709 
     696       
    710697        if [ "x$mode" != "x" ]; then
    711698        #svn_process_single_collection $collection
    712 
     699       
    713700        if [ "x$mode" == "xsvnupdate" ]; then
    714701            update_single_collection $collection
    715702        elif [ "x$mode" == "xsvnaddnew" ]; then
    716703            svn_add_new_collection $collection
     704        fi
     705        fi
     706    fi
     707    done
     708
     709    # having rebuilt all the collections, just the processing for svndelete remains:
     710    if [ "x$mode" == "xsvndelete" ]; then
     711    svn_delete
     712    fi
     713
     714else
     715    # Command-line args are a list of collections,
     716    # process each command-line arg, after confirming such a collection exists
     717
     718    for collection in "$@"; do
     719    collection=collect/$collection
     720    if test -e $collection; then
     721        if [ "x$GSDLOS" = "xwindows" ] || [ $collection != Word-PDF-Enhanced* ]; then
     722       
     723        build_single_collection $collection;
     724       
     725        if [ "x$mode" != "x" ]; then
     726            #svn_process_single_collection $collection
     727           
     728            if [ "x$mode" == "xsvnupdate" ]; then
     729            update_single_collection $collection
     730            elif [ "x$mode" == "xsvnaddnew" ]; then
     731            svn_add_new_collection $collection
     732            fi
    717733        fi
    718734        fi
     
    723739    fi
    724740    done
    725 
     741   
    726742    # having rebuilt the specified collections above, just the processing for svndelete remains
    727743    if [ "x$mode" == "xsvndelete" ]; then
Note: See TracChangeset for help on using the changeset viewer.