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

Revision 25900, 0.9 KB (checked in by ak19, 7 years ago)

Adding an ant build file with add-service and del-service targets for the Solr extension to replace the existing bash scripts ADD-SERVICE.sh and DEL-SERVICE.sh. This bypasses the need for batch scripts that parallel the bash scripts.

  • 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
15
16classesdir=web/WEB-INF/classes
17
18prop_list=`cat prop-file-list.txt`
19
20for f in $prop_list ; do
21  echo "Removing $f from gsdl3 properties area '$classesdir'"
22
23  /bin/rm -f "../../$classesdir/$f"
24done
25
26jarwebdir=web/WEB-INF/lib
27
28file_list=`cat jar-file-list.txt | egrep -v '^#'`
29
30for f in $file_list ; do
31  echo "Removing $f from gsdl3 web jar lib directory"
32
33  /bin/rm -f "../../$jarwebdir/$f"
34done
35
36
37webextdir=ext/solr
38
39if [ -d web ] ; then
40  echo "Removing the content of the web folder copied in by ADD-SERVICE.sh"
41  # remove the content of the web folder copied in by ADD-SERVICE.sh
42  /bin/rm -r ../../$webextdir
43fi
Note: See TracBrowser for help on using the browser.