col=${PWD##*/} site_with_subdirs=${PWD##*/sites/} site=${site_with_subdirs%%/*} # # For *command-line* *building*, can talk to the library over *localhost*, # even if the DL collection proxied through another web server to make it # publically available to end-users (i.e. accessed via a web browser) # gs_http_port=`egrep "^localhost.port.http" ../../../../../build.properties | sed 's/^localhost\.port\.http=//'` gs_context=`egrep "^greenstone.context" ../../../../../build.properties | sed 's/^greenstone\.context=//'` #gs_context="my-url-prefix" gs_library_url="http://localhost:$gs_http_port/$gs_context/library" #gs_library_url="http://localhost:$gs_http_port/$gs_context/$site-library" gs_server_usernane=www-data