Changeset 35328


Ignore:
Timestamp:
2021-09-02T11:55:47+12:00 (3 years ago)
Author:
davidb
Message:

Changed to get list of located jar files from located-jar-list.txt

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/src/jar-support/google-api-client-jars/INSTALL-JAR-DEPENDENCIES.sh

    r35327 r35328  
    11#!/bin/bash
    2 
    3 
    4 jar_list=`cat jar-list.txt | egrep -v "^#"`
    52
    63
    74echo ""
    85
    9 src_jar_list=""
     6if [ ! -f located-jar-list.txt ] ; then
     7    echo "Failed to locate:" >&2
     8    echo "  located-jar-list.txt" >&2
     9    echo ""
     10    echo "Have your run:" >&2
     11    echo "  ./LOCATE-JAR.DEPENDENCIES.sh" >&2
     12fi
     13   
    1014
    11 
    12 # Turns out property files not needed
    13 #src_prop_list=""
    14 
    15 for j in $jar_list ; do
    16     num_matches=`find google-*-client -name "*$j" | wc -l`
    17 
    18     if [ $num_matches != "0" ] ; then
    19     found_jar_file=`find google-*-client -name "*$j" | head -n 1`
    20     src_jar_list="$src_jar_list $found_jar_file"
    21 
    22 #   found_prop_file=${found_jar_file%.*}.properties
    23 #   if [ -f $found_prop_file ] ; then
    24 #      src_prop_list="$src_prop_list $found_prop_file"
    25 #   fi
    26     else
    27     echo "" 1>&2
    28     echo "Error, failed to find:" 1>&2
    29     echo "  $j" 1>&2
    30     echo "" 1>&2
    31     exit 1
    32     fi
    33 
    34 done
    35 
    36 
    37 for sj in $src_jar_list ; do
     15echo "Installing: "
     16for sj in `cat located-jar-list.txt` ; do
    3817    j=${sj##*/}
    3918    dj=../../../web/WEB-INF/lib/$j
    40     echo "Copying: $sj -> $dj"
     19    echo "  $sj -> $dj"
    4120    /bin/cp $sj $dj
    4221done
    4322
    4423
    45 #for sp in $src_prop_list ; do
    46 #    p=${sp##*/}
    47 #    dp=../../../web/WEB-INF/lib/$p
    48 #    echo "Copying: $sp -> $dp"
    49 #    /bin/cp $sp $dp
    50 #done
     24echo ""
Note: See TracChangeset for help on using the changeset viewer.