#!/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 | |
---|---|---|---|---|---|
#1 | 18494 | Paul Allen |
Fixed paths: search/search/... to search/... util/util/... to util/... Fixed permission bits +w for config and properties file that get touched during build/install Fixed INSTALL file and install dir (cause name clash on OS X) moved INSTALL to INSTALL.md |
||
//guest/perforce_software/p4search/main/search/search/test/test-setup.sh | |||||
#1 | 16193 | perforce_software | Move p4search to main directory to match new branching path scheme. | ||
//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 |