#!/bin/bash ROOT=$(dirname $0) source $ROOT/control.sh source $ROOT/solr-rev # install solr? (SOLR_VERSION is set in solr-rev) if [ ! -d $ROOT/libs/solr-$SOLR_VERSION ] ; then if [ -e $ROOT/../../util/solr-$SOLR_VERSION.tgz ] ; then echo "Extracting util version of solr..." tar xf $ROOT/../../util/solr-$SOLR_VERSION.tgz -C $ROOT/libs/ else echo "Downloading solr-$SOLR_VERSION..." wget http://www.gtlib.gatech.edu/pub/apache/lucene/solr/4.5.1/solr-$SOLR_VERSION.tgz || exit 1 tar xf solr-$SOLR_VERSION.tgz -C $ROOT/libs/ fi fi # stop p4d and solr, don't fail echo "Stopping running services" control stop noexit # copy solr schema and the solr controller echo "Updating schema.xml" cp -f $ROOT/../build/solr-config/$SOLR_VERSION/schema.xml $ROOT/libs/solr-$SOLR_VERSION/example/solr/collection1/conf/schema.xml || exit 1 echo "Updating control script" cp -f $ROOT/../build/scripts/solr-control.sh $ROOT/libs/solr-$SOLR_VERSION/example # expand the depot zip echo "Extracting test base server..." if [ -d "$ROOT/libs/p4d/tmp/searchtest" ] ; then rm -rf $ROOT/libs/p4d/tmp/searchtest || exit 1 ; fi unzip -q $ROOT/libs/testdepot/searchtest.zip -d $ROOT/libs/p4d echo "Starting p4d and solr services..." # start p4d and solr control start || exit 1
# | Change | User | Description | Committed | |
---|---|---|---|---|---|
#2 | 18866 | Sven Erik Knop | Updated with latest version | ||
#1 | 9795 | Sven Erik Knop |
Populate //guest/sven_erik_knop/p4search/... from //guest/perforce_software/p4search/.... |
||
//guest/perforce_software/p4search/search/test/test-setup.sh | |||||
#2 | 9007 | Doug Scheirer |
update workshop p4-search with the latest released code: * code updates - bug fixes * adding jetty + solr tarballs * script updates * updated p4java jar to latest release |
||
#1 | 8975 | Matt Attaway | Populate official version of p4-search from the original Doug Scheirer source | ||
//guest/doug_scheirer/p4-search/search/test/test-setup.sh | |||||
#1 | 8476 | Doug Scheirer | p4-search copy from //depot/main/p4-search |