source: gs3-extensions/solr/trunk/src/ADD-SERVICE.sh@ 24645

Last change on this file since 24645 was 24642, checked in by davidb, 13 years ago

supporting files and add and remove solr service to Greenstone3

  • Property svn:executable set to *
File size: 704 bytes
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
23webextdir=ext/solr
24
25if [ ! -d ../../$webextdir ] ; then
26 echo "Creating web extension direction: $webextdir"
27 mkir ../../$webextdir
28fi
29
30# copy the content of the web folder (avoiding the top-level .svn directory)
31/bin/cp -r web/* ../../$webextdir/.
32
Note: See TracBrowser for help on using the repository browser.