Last change
on this file since 24715 was 24715, checked in by davidb, 12 years ago |
Added in support to copy and remove needed jar files
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
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 | echo "Adding $gsdlsrcdir/$f to gsdl3 java code-base"
|
---|
9 |
|
---|
10 | /bin/cp "$gsdlsrcdir/$f" "../../$gsdlsrcdir/$f"
|
---|
11 | done
|
---|
12 |
|
---|
13 |
|
---|
14 | if [ ! -d backup ] ; then
|
---|
15 | echo "Patching GS2LuceneSearch to inherit from SharedSoleneGS2FieldSearch.java"
|
---|
16 | mkdir backup
|
---|
17 | /bin/mv ../../$gsdlsrcdir/service/GS2LuceneSearch.java backup/.
|
---|
18 | /bin/cp $gsdlsrcdir/service/GS2LuceneSearch.java ../../$gsdlsrcdir/service/.
|
---|
19 | /bin/cp $gsdlsrcdir/service/SharedSoleneGS2FieldSearch.java ../../$gsdlsrcdir/service/.
|
---|
20 | fi
|
---|
21 |
|
---|
22 | classesdir=web/WEB-INF/classes
|
---|
23 |
|
---|
24 | prop_list=`cat prop-file-list.txt`
|
---|
25 |
|
---|
26 | for f in $prop_list ; do
|
---|
27 | echo "Adding properties/$f to gsdl3 properties area"
|
---|
28 |
|
---|
29 | /bin/cp "properties/$f" "../../$classesdir/$f"
|
---|
30 | done
|
---|
31 |
|
---|
32 |
|
---|
33 | jarwebdir=web/WEB-INF/lib
|
---|
34 |
|
---|
35 | file_list=`cat jar-file-list.txt | egrep -v '^#'`
|
---|
36 |
|
---|
37 | for f in $file_list ; do
|
---|
38 | echo "Adding $gsdlsrcdir/$f to gsdl3 web jar lib directory"
|
---|
39 |
|
---|
40 | /bin/cp "lib/java/$f" "../../$jarwebdir/$f"
|
---|
41 | done
|
---|
42 |
|
---|
43 |
|
---|
44 |
|
---|
45 | webextdir=ext/solr
|
---|
46 |
|
---|
47 | if [ ! -d ../../$webextdir ] ; then
|
---|
48 | echo "Creating web extension direction: $webextdir"
|
---|
49 | mkir ../../$webextdir
|
---|
50 | fi
|
---|
51 |
|
---|
52 | if [ -d web ] ; then
|
---|
53 | # copy the content of the web folder (avoiding the top-level .svn directory)
|
---|
54 | /bin/cp -r web/* ../../$webextdir/.
|
---|
55 | fi
|
---|
56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.