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