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

Last change on this file since 25802 was 25802, checked in by sjm84, 12 years ago

Some minor fixes to the Add-service.sh file

  • Property svn:executable set to *
File size: 1.1 KB
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 $gsdlsrcdir/$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 direction: $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 # copy the content of the web folder (avoiding the top-level .svn directory)
49 /bin/cp -r web/* ../../$webextdir/.
50fi
Note: See TracBrowser for help on using the repository browser.