From 94b1200cde6becefba4ee80469190284f74fe91c Mon Sep 17 00:00:00 2001 From: Claudio Sacerdoti Coen Date: Fri, 20 Jun 2003 14:24:00 +0000 Subject: [PATCH] - script.sh added to the repository: you should change it to reflect your own settings - the Makefile tries now to automatically build the styles directory, made only of hyperlinks to the styles in stylesheets and stylesheets/generated. Before doing make, you have to check out the stylesheets and meta_stylesheets repositories from the mowgli archive. - added rootcontent.xsl which is the version used by gTopLevel until we find a better solution. You should change it to reflect your own settings. --- helm/gTopLevel/.cvsignore | 2 +- helm/gTopLevel/Makefile | 14 ++++- helm/gTopLevel/rootcontent.xsl | 102 +++++++++++++++++++++++++++++++++ helm/gTopLevel/script.sh | 19 ++++++ 4 files changed, 134 insertions(+), 3 deletions(-) create mode 100644 helm/gTopLevel/rootcontent.xsl create mode 100755 helm/gTopLevel/script.sh diff --git a/helm/gTopLevel/.cvsignore b/helm/gTopLevel/.cvsignore index e3d42f17b..59f31a4b6 100644 --- a/helm/gTopLevel/.cvsignore +++ b/helm/gTopLevel/.cvsignore @@ -1 +1 @@ -*.cm[iox] gTopLevel gTopLevel.opt +*.cm[iox] gTopLevel gTopLevel.opt styles stylesheets meta_stylesheets diff --git a/helm/gTopLevel/Makefile b/helm/gTopLevel/Makefile index fb62256ef..f7738091b 100644 --- a/helm/gTopLevel/Makefile +++ b/helm/gTopLevel/Makefile @@ -13,8 +13,8 @@ OCAMLDEP = ocamldep -pp camlp4o LIBRARIES = $(shell ocamlfind query -recursive -predicates "byte $(PREDICATES)" -format "%d/%a" $(REQUIRES)) LIBRARIES_OPT = $(shell ocamlfind query -recursive -predicates "native $(PREDICATES)" -format "%d/%a" $(REQUIRES)) -all: gTopLevel -opt: gTopLevel.opt +all: styles gTopLevel +opt: styles gTopLevel.opt DEPOBJS = \ xml2Gdome.ml xml2Gdome.mli proofEngine.ml proofEngine.mli \ @@ -34,6 +34,16 @@ TOPLEVELOBJS = \ termEditor.cmo texTermEditor.cmo applyStylesheets.cmo termViewer.cmo \ invokeTactics.cmo hbugs.cmo gTopLevel.cmo +styles: + @echo "***********************************************************************" + @if [ -d stylesheets -a -d meta_stylesheets ] ; then echo -e "* stylesheets and metastylesheets found: *\\n* I will create the request hyperlinks in styles *" ; else echo -e "* stylesheets or meta_stylesheets not found: *\\n* you should check-out the two directories from the MoWGLI repository *" ; exit -1 ; fi + @echo "***********************************************************************" + mkdir styles + (cd stylesheets && for i in *.xsl ; do ln -s ../stylesheets/$$i ../styles/$$i ; done) + (cd stylesheets/generated && for i in *.xsl ; do ln -s ../stylesheets/generated/$$i ../../styles/$$i ; done) + rm styles/rootcontent.xsl + ln -s ../rootcontent.xsl styles/rootcontent.xsl + depend: $(OCAMLDEP) $(DEPOBJS) > .depend diff --git a/helm/gTopLevel/rootcontent.xsl b/helm/gTopLevel/rootcontent.xsl new file mode 100644 index 000000000..3adf8e223 --- /dev/null +++ b/helm/gTopLevel/rootcontent.xsl @@ -0,0 +1,102 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/helm/gTopLevel/script.sh b/helm/gTopLevel/script.sh new file mode 100755 index 000000000..29dd0a396 --- /dev/null +++ b/helm/gTopLevel/script.sh @@ -0,0 +1,19 @@ +#!/bin/bash + +export OCAMLPATH=/projects/helm/galax/sources/natile-galax-0.1-alpha-installed/lib:/home/claudio/miohelm/helm/ocaml:/home/claudio/miohelm/helm:/home/claudio/miohelm/helm/hbugs/meta + +export HELM_ANNOTATIONS_DIR=/home/claudio/miohelm/objects +export HELM_ANNOTATIONS_URL=file:///home/claudio/miohelm/objects +#export HELM_GETTER_URL=http://mowgli.cs.unibo.it:58081/ +#export HELM_PROCESSOR_URL=http://mowgli.cs.unibo.it:58080/ +export HELM_GETTER_URL=http://localhost:58081/ +export HELM_PROCESSOR_URL=http://localhost:58080/ + +export GTOPLEVEL_PROOFFILE=/public/sacerdot/currentproof +export GTOPLEVEL_PROOFFILETYPE=/public/sacerdot/currentprooftype +export GTOPLEVEL_INNERTYPESFILE=/public/sacerdot/innertypes +export GTOPLEVEL_CONSTANTTYPEFILE=/public/sacerdot/constanttype +export POSTGRESQL_CONNECTION_STRING="dbname=mowgli" +#export POSTGRESQL_CONNECTION_STRING="host=mowgli.cs.unibo.it dbname=mowgli user=helm password=awH21Un" + +export HELM_TMP_DIR=/tmp -- 2.39.2