Last change
on this file since 24715 was 24715, checked in by davidb, 13 years ago |
Added in support to copy and remove needed jar files
|
-
Property svn:executable
set to
*
|
File size:
1.3 KB
|
Rev | Line | |
---|
[24642] | 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 |
|
---|
[24648] | 13 |
|
---|
| 14 | if [ ! -d backup ] ; then
|
---|
| 15 | echo "Patching GS2LuceneSearch to inherit from SharedSoleneGS2FieldSearch.java"
|
---|
| 16 | mkdir backup
|
---|
[24713] | 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/.
|
---|
[24648] | 20 | fi
|
---|
| 21 |
|
---|
[24642] | 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 |
|
---|
[24715] | 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 |
|
---|
[24642] | 45 | webextdir=ext/solr
|
---|
| 46 |
|
---|
| 47 | if [ ! -d ../../$webextdir ] ; then
|
---|
| 48 | echo "Creating web extension direction: $webextdir"
|
---|
| 49 | mkir ../../$webextdir
|
---|
| 50 | fi
|
---|
| 51 |
|
---|
[24715] | 52 | if [ -d web ] ; then
|
---|
[24713] | 53 | # copy the content of the web folder (avoiding the top-level .svn directory)
|
---|
| 54 | /bin/cp -r web/* ../../$webextdir/.
|
---|
| 55 | fi
|
---|
[24642] | 56 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.