Changeset 38017
- Timestamp:
- 2023-09-04T19:32:49+12:00 (8 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
other-projects/nightly-tasks/diffcol/trunk/gen-model-colls.sh
r37441 r38017 267 267 collection=$1 268 268 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 269 275 #escape the filename (in case of space) and get just the basename 270 276 collection=$(get_col_basename $collection) … … 556 562 source ./gs3-setup.sh 557 563 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 558 567 elif [ -e setup.bash ]; then 559 568 source ./setup.bash … … 599 608 fi 600 609 # for GS2 need to make PDFv2Plugin.tmp functional, now that we have pdfbox 601 if [ -e "$GSDLHOME/ext/pdf-box" ] ; then610 if [ -e "$GSDLHOME/ext/pdf-box" ] && [ "x$GSDL3SRCHOME" == "x" ]; then 602 611 if [ -e "$GSDLHOME/perllib/plugins/PDFv2Plugin.tmp" ]; then 603 612 echo "** Renaming PDFv2Plugin.tmp to PDFv2Plugin.pm to work with pdf-box" … … 681 690 #for each collection, import, build, move building to index 682 691 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 708 695 build_single_collection $collection; 709 696 710 697 if [ "x$mode" != "x" ]; then 711 698 #svn_process_single_collection $collection 712 699 713 700 if [ "x$mode" == "xsvnupdate" ]; then 714 701 update_single_collection $collection 715 702 elif [ "x$mode" == "xsvnaddnew" ]; then 716 703 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 714 else 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 717 733 fi 718 734 fi … … 723 739 fi 724 740 done 725 741 726 742 # having rebuilt the specified collections above, just the processing for svndelete remains 727 743 if [ "x$mode" == "xsvndelete" ]; then
Note:
See TracChangeset
for help on using the changeset viewer.