Line | |
---|
1 |
|
---|
2 | cwd=`pwd`
|
---|
3 |
|
---|
4 | col=${cwd##*/}
|
---|
5 |
|
---|
6 | site_with_subdirs=${cwd##*/sites/}
|
---|
7 | site=${site_with_subdirs%%/*}
|
---|
8 |
|
---|
9 | #
|
---|
10 | # For *command-line* *building*, can talk to the library over *localhost*,
|
---|
11 | # even if the DL collection proxied through another web server to make it
|
---|
12 | # publically available to end-users (i.e. accessed via a web browser)
|
---|
13 | #
|
---|
14 | library_url="http://localhost:8383/greenstone3/$site-library"
|
---|
15 |
|
---|
16 | #
|
---|
17 | # Edit transform/layouts/header.xsl to control this value
|
---|
18 | #
|
---|
19 | sparqlGraphBasePrefix=`fgrep FULL_GREENSTONE_URL_PREFIX transform/layouts/header.xsl | sed 's/<[^>]*>//g' | sed 's/\s\+//g'`
|
---|
20 |
|
---|
21 | if [ $? = 0 ] ; then
|
---|
22 | export FULL_GREENSTONE_URL_PREFIX="$sparqlGraphBasePrefix/greenstone3/$site-library"
|
---|
23 | echo "Setting environment variable:"
|
---|
24 | echo " FULL_GREENSTONE_URL_PREFIX=\"$FULL_GREENSTONE_URL_PREFIX\""
|
---|
25 | echo ""
|
---|
26 | fi
|
---|
27 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.