source: gs3-extensions/solr/trunk/src/ADD-SERVICE.sh@ 24713

Last change on this file since 24713 was 24713, checked in by davidb, 13 years ago

Corrected 'gsdlsrc' to 'gsdlsrcdir' variable, plus made the decision to copy web/* based on whether 'web' exists or not

  • Property svn:executable set to *
File size: 1.1 KB
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
32webextdir=ext/solr
33
34if [ ! -d ../../$webextdir ] ; then
35 echo "Creating web extension direction: $webextdir"
36 mkir ../../$webextdir
37fi
38
39if [ -d web ] ;
40 # copy the content of the web folder (avoiding the top-level .svn directory)
41 /bin/cp -r web/* ../../$webextdir/.
42fi
43
Note: See TracBrowser for help on using the repository browser.