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

Revision 24715, 1.2 KB (checked in by davidb, 8 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  if [ -e "../../$gsdlsrcdir/$f" ] ; then
9    echo "Removing $gsdlsrcdir/$f from gsdl3 java code-base area '$gsdlsrcdir'"
10
11    /bin/rm -f "../../$gsdlsrcdir/$f"
12  fi
13done
14
15if [ -d backup ] ; then
16  echo "Reverting GS2LuceneSearch to nolonger inherit from SharedSoleneGS2FieldSearch.java"
17  /bin/rm ../../$gsdlsrcdir/service/SharedSoleneGS2FieldSearch.java
18  /bin/rm ../../$gsdlsrcdir/service/GS2LuceneSearch.java
19  /bin/mv backup/GS2LuceneSearch.java $gsdlsrcdir/service/.
20  rmdir backup
21fi
22
23
24classesdir=web/WEB-INF/classes
25
26prop_list=`cat prop-file-list.txt`
27
28for f in $prop_list ; do
29  echo "Removing $f from gsdl3 properties area '$classesdir'"
30
31  /bin/rm -f "../../$classesdir/$f"
32done
33
34jarwebdir=web/WEB-INF/lib
35
36file_list=`cat jar-file-list.txt | egrep -v '^#'`
37
38for f in $file_list ; do
39  echo "Adding $gsdlsrcdir/$f to gsdl3 web jar lib directory"
40
41  /bin/rm -f "../../$jarwebdir/$f"
42done
43
44
45webextdir=ext/solr
46
47if [ -d web ] ; then
48  # remove the content of the web folder copied in by ADD-SERVICE.sh
49  /bin/rm -r ../../$webextdir
50fi
Note: See TracBrowser for help on using the browser.