Last change
on this file since 29709 was 25900, checked in by ak19, 12 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
*
|
File size:
927 bytes
|
Line | |
---|
1 | #!/bin/bash
|
---|
2 |
|
---|
3 | gsdlsrcdir=src/java/org/greenstone/gsdl3
|
---|
4 |
|
---|
5 | file_list=`cat java-src-file-list.txt | egrep -v '^#'`
|
---|
6 |
|
---|
7 | for 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
|
---|
13 | done
|
---|
14 |
|
---|
15 |
|
---|
16 | classesdir=web/WEB-INF/classes
|
---|
17 |
|
---|
18 | prop_list=`cat prop-file-list.txt`
|
---|
19 |
|
---|
20 | for f in $prop_list ; do
|
---|
21 | echo "Removing $f from gsdl3 properties area '$classesdir'"
|
---|
22 |
|
---|
23 | /bin/rm -f "../../$classesdir/$f"
|
---|
24 | done
|
---|
25 |
|
---|
26 | jarwebdir=web/WEB-INF/lib
|
---|
27 |
|
---|
28 | file_list=`cat jar-file-list.txt | egrep -v '^#'`
|
---|
29 |
|
---|
30 | for f in $file_list ; do
|
---|
31 | echo "Removing $f from gsdl3 web jar lib directory"
|
---|
32 |
|
---|
33 | /bin/rm -f "../../$jarwebdir/$f"
|
---|
34 | done
|
---|
35 |
|
---|
36 |
|
---|
37 | webextdir=ext/solr
|
---|
38 |
|
---|
39 | if [ -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
|
---|
43 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.