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

Revision 24714, 0.9 KB (checked in by davidb, 9 years ago)

Corrected 'gsdlsrc' to 'gsdlsrcdir' variable, plus made the decision to remove web/ext/solr based on whether 'web' exists or not

  • 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
34webextdir=ext/solr
35
36if [ -d web ] ;
37  # remove the content of the web folder copied in by ADD-SERVICE.sh
38  /bin/rm -r ../../$webextdir
39fi
Note: See TracBrowser for help on using the browser.