Changeset 35328
- Timestamp:
- 2021-09-02T11:55:47+12:00 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/src/jar-support/google-api-client-jars/INSTALL-JAR-DEPENDENCIES.sh
r35327 r35328 1 1 #!/bin/bash 2 3 4 jar_list=`cat jar-list.txt | egrep -v "^#"`5 2 6 3 7 4 echo "" 8 5 9 src_jar_list="" 6 if [ ! -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 12 fi 13 10 14 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 15 echo "Installing: " 16 for sj in `cat located-jar-list.txt` ; do 38 17 j=${sj##*/} 39 18 dj=../../../web/WEB-INF/lib/$j 40 echo " Copying:$sj -> $dj"19 echo " $sj -> $dj" 41 20 /bin/cp $sj $dj 42 21 done 43 22 44 23 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 24 echo ""
Note:
See TracChangeset
for help on using the changeset viewer.