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

Revision 24715, 1.3 KB (checked in by davidb, 9 years ago)

Added in support to copy and remove needed jar files

  • 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
14if [ ! -d backup ] ; then
15  echo "Patching GS2LuceneSearch to inherit from SharedSoleneGS2FieldSearch.java"
16  mkdir backup
17  /bin/mv ../../$gsdlsrcdir/service/GS2LuceneSearch.java backup/.
18  /bin/cp $gsdlsrcdir/service/GS2LuceneSearch.java ../../$gsdlsrcdir/service/.
19  /bin/cp $gsdlsrcdir/service/SharedSoleneGS2FieldSearch.java ../../$gsdlsrcdir/service/.
20fi
21
22classesdir=web/WEB-INF/classes
23
24prop_list=`cat prop-file-list.txt`
25
26for f in $prop_list ; do
27  echo "Adding properties/$f to gsdl3 properties area"
28
29  /bin/cp "properties/$f" "../../$classesdir/$f"
30done
31
32
33jarwebdir=web/WEB-INF/lib
34
35file_list=`cat jar-file-list.txt | egrep -v '^#'`
36
37for f in $file_list ; do
38  echo "Adding $gsdlsrcdir/$f to gsdl3 web jar lib directory"
39
40  /bin/cp "lib/java/$f" "../../$jarwebdir/$f"
41done
42
43
44
45webextdir=ext/solr
46
47if [ ! -d ../../$webextdir ] ; then
48  echo "Creating web extension direction: $webextdir"
49  mkir ../../$webextdir
50fi
51
52if [ -d web ] ; then
53  # copy the content of the web folder (avoiding the top-level .svn directory)
54  /bin/cp -r web/* ../../$webextdir/.
55fi
56
Note: See TracBrowser for help on using the browser.