root/gs3-extensions/solr/trunk/src/ADD-SERVICE.sh @ 24742

Revision 24742, 0.9 KB (checked in by davidb, 8 years ago)

Due to introduction of LuceneWrapper?3, no longer need to keep a backup folder and patch existing Lucene services

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3gsdlsrcdir=src/java/org/greenstone/gsdl3
4
5file_list=`cat java-src-file-list.txt | egrep -v '^#'`
6
7for f in $file_list ; do
8  echo "Adding $gsdlsrcdir/$f to gsdl3 java code-base"
9
10  /bin/cp "$gsdlsrcdir/$f" "../../$gsdlsrcdir/$f"
11done
12
13
14classesdir=web/WEB-INF/classes
15
16prop_list=`cat prop-file-list.txt`
17
18for f in $prop_list ; do
19  echo "Adding properties/$f to gsdl3 properties area"
20
21  /bin/cp "properties/$f" "../../$classesdir/$f"
22done
23
24
25jarwebdir=web/WEB-INF/lib
26
27file_list=`cat jar-file-list.txt | egrep -v '^#'`
28
29for f in $file_list ; do
30  echo "Adding $gsdlsrcdir/$f to gsdl3 web jar lib directory"
31
32  /bin/cp "lib/java/$f" "../../$jarwebdir/$f"
33done
34
35
36
37webextdir=ext/solr
38
39if [ ! -d ../../$webextdir ] ; then
40  echo "Creating web extension direction: $webextdir"
41  mkir ../../$webextdir
42fi
43
44if [ -d web ] ; then
45  # copy the content of the web folder (avoiding the top-level .svn directory)
46  /bin/cp -r web/* ../../$webextdir/.
47fi
48
Note: See TracBrowser for help on using the browser.