Commit d2008367 authored by Idir Lankri's avatar Idir Lankri

Remove useless configuration variable SKTCORPUS

parent 9e2d37f7
......@@ -19,22 +19,18 @@ value mode_selection =
) [ Reader; Annotator; Manager ]
;
value make lang =
let title_str =
if corpus_toggle then "Sanskrit Corpus" else "No corpus available"
in
let title_str = "Sanskrit Corpus" in
do
{ open_html_file (corpus_page lang) (title title_str)
; body_begin Chamois_back |> pl
; open_page_with_margin 15
; h1_title title_str |> print_title (Some lang)
; center_begin |> pl
; if corpus_toggle then
cgi_begin corpus_manager_cgi "" ^
"Mode: " ^
option_select_default Params.corpus_mode mode_selection ^ " " ^
submit_input "OK" ^
cgi_end |> pl
else ()
; cgi_begin corpus_manager_cgi "" ^
"Mode: " ^
option_select_default Params.corpus_mode mode_selection ^ " " ^
submit_input "OK" ^
cgi_end |> pl
; center_end |> pl
; close_page_with_margin ()
; close_html_file lang True
......
......@@ -641,8 +641,6 @@ value remote_server_host = "http://sanskrit.inria.fr/"
value scl_toggle =
not (SCLpaths.scl_url="") (* True if SCL tools are installed *)
;
value corpus_toggle = True (* Was Paths.skt_corpus_dir <> "" *)
;
value corpus_read_only =
match target with
[ Station -> False
......
......@@ -9,6 +9,5 @@ SKTRESOURCES='/Users/huet/Sanskrit/Heritage_Resources/'
CGIBINURL='/cgi-bin/SKT/'
CGIDIR='/Library/WebServer/CGI-Executables/SKT/'
CGIEXT='.cgi'
SKTCORPUS='/Users/huet/Sanskrit/Heritage_Platform/CORPUS'
MOUSEACTION='CLICK'
CAPTION='Mirror site Amrita'
......@@ -11,11 +11,14 @@ TRANSLIT='VH'
LEXICON='SH'
DISPLAY='roma'
SERVERHOST='127.0.0.1'
# User-specific Apache config.
SERVERPUBLICDIR='/var/www/html/heritage-platform/'
SKTDIRURL='/heritage-platform/'
CGIDIR='/usr/lib/cgi-bin/heritage-platform/'
CGIBINURL='/cgi-bin/heritage-platform/'
CGIEXT='.cgi'
CGIEXT=''
MOUSEACTION='CLICK'
CAPTION='My mirror site'
SKTRESOURCES='/home/idir/sanskrit/Heritage_Resources/'
......@@ -34,7 +34,7 @@ GOLD=$(SKTRESOURCES)GOLD# Heritage in Goldendict format databases
XMLBANKS=$(SKTRESOURCES)XML# Heritage Sanskrit morphology in XML databases
# Path to global Sanskrit corpus downloaded from Git.
SKTCORPUS = #SKTCORPUS
SKTCORPUS = $(SKTRESOURCES)CORPUS
# Path to the corpus in the server area.
SERVERCORPUS = $(SERVERPUBLICDIR)CORPUS
......@@ -421,7 +421,6 @@ echo 'and default_lexicon = "$(LEXICON)"'; \
echo 'and default_display_font = "$(DISPLAY)"'; \
echo 'and skt_install_dir = "$(SKTINSTALLDIR)"'; \
echo 'and skt_resources_dir = "$(SKTRESOURCES)"'; \
echo 'and skt_corpus_dir = "$(SKTCORPUS)"'; \
echo 'and public_skt_dir = "$(SERVERPUBLICDIR)"'; \
echo 'and skt_dir_url = "$(SKTDIRURL)"'; \
echo 'and server_host = "$(SERVERHOST)"'; \
......@@ -526,12 +525,12 @@ releasedata: abrevs
cp $(SITEPAGE_EN) $(SERVERPUBLICDIR)index.html; \
fi # default language from lexicon parameter
cp -R $(DICO) $(SERVERPUBLICDIR) # hypertext Heritage dictionary
if [ $(SKTCORPUS) ]; then \
mkdir -p $(SERVERCORPUS); \
cp -R $(SKTCORPUS)* $(SERVERCORPUS); \
chown -R $(APACHE_USER):$(APACHE_GROUP) \
$(SERVERCORPUS); \
fi # Sanskrit corpus
# Copy the corpus in the server area.
cp -R $(SKTCORPUS) $(SERVERPUBLICDIR)
# Make the corpus in the server area writable by CGIs.
chown -R $(APACHE_USER):$(APACHE_GROUP) $(SERVERCORPUS)
# so that cgis invocations in DICO pages are relocated consistently with config:
cd $(SERVERPUBLICDIR) && for i in `ls DICO/*.html`; do (\
sed '1,$$s|!CGIDECL|$(CGIBINURL)$(CGIDECL)|g' < $$i >temp; \
......
......@@ -23,7 +23,7 @@ meta_docintro_path="DOC/docintro"
docintro_path="DOC/docintro.tex"
makefile_keys=["TEMPLATE","PLATFORM","TRANSLIT","LEXICON","DISPLAY","WARN",
"SERVERHOST","SERVERPUBLICDIR","SKTDIRURL","SKTRESOURCES",
"SKTCORPUS","CGIBINURL","CGIDIR","CGIEXT","MOUSEACTION"]
"CGIBINURL","CGIDIR","CGIEXT","MOUSEACTION"]
#"SCLURL","SCLINSTALLDIR","TEMPAREA","OUTPUTFONT",
counter_keys=["CAPTION"]
version_keys=["VERSION","DATE"]
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment