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

Revision 25900, 1.1 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  echo "Adding $gsdlsrcdir/$f to gsdl3 java code-base"
9
10  /bin/cp "$gsdlsrcdir/$f" "../../$gsdlsrcdir/$f"
11done
12
13classesdir=web/WEB-INF/classes
14
15prop_list=`cat prop-file-list.txt`
16
17for f in $prop_list ; do
18  echo "Adding properties/$f to gsdl3 properties area"
19
20  /bin/cp "properties/$f" "../../$classesdir/$f"
21done
22
23jarwebdir=web/WEB-INF/lib
24
25file_list=`cat jar-file-list.txt | egrep -v '^#'`
26
27for f in $file_list ; do
28  echo "Adding lib/java/$f to gsdl3 web jar lib directory"
29
30  /bin/cp "lib/java/$f" "../../$jarwebdir/$f"
31done
32
33webextdir=web/ext/solr
34
35if [ ! -d ../../$webextdir ] ; then
36  echo "Creating web extension directory: $webextdir"
37  mkdir ../../$webextdir
38fi
39
40web_list="solr.xml"
41
42for f in $web_list ; do
43  echo "Adding $f to gsdl3 web ext directory"
44  /bin/cp "$f" "../../$webextdir/$f"
45done
46
47if [ -d web ] ; then
48  echo "Copying the content of the web folder (excluding the top-level .svn directory)"
49  # copy the content of the web folder (avoiding the top-level .svn directory)
50  /bin/cp -r web/* ../../$webextdir/.
51fi
Note: See TracBrowser for help on using the browser.