]> matita.cs.unibo.it Git - helm.git/commitdiff
Scripts simplified (since now we have only one cluster and only one
authorClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 19 Jan 2004 17:41:47 +0000 (17:41 +0000)
committerClaudio Sacerdoti Coen <claudio.sacerdoticoen@unibo.it>
Mon, 19 Jan 2004 17:41:47 +0000 (17:41 +0000)
stable version of the library).

helm/scripts/Makefile
helm/scripts/makeit
helm/scripts/template.cshrc
helm/scripts/template.rc

index 8b20831afbd70d7634caeedd2b92a90f1d78b423..be6ba219843067293ce64b2bd831970f3e7d7134 100644 (file)
@@ -1,19 +1,15 @@
 
 all: 
-       - chmod ug+w marcello*rc phd*rc
-       ./makeit V7_mowgli marcello marcello <template.cshrc >marcello_mowgli.cshrc
-       ./makeit V7_mowgli marcello marcello <template.rc >marcello_mowgli.rc
-       ./makeit V7_mowgli marcello phd <template.cshrc >marcello_phd_mowgli.cshrc
-       ./makeit V7_mowgli marcello phd <template.rc >marcello_phd_mowgli.rc
-       ./makeit V7_mowgli phd phd <template.cshrc >phd_mowgli.cshrc
-       ./makeit V7_mowgli phd phd <template.rc >phd_mowgli.rc
-       ./makeit V7_mowgli phd marcello <template.cshrc >phd_marcello_mowgli.cshrc
-       ./makeit V7_mowgli phd marcello <template.rc >phd_marcello_mowgli.rc
-       chmod a+x marcello*rc phd*rc
-       chmod ug-w marcello*rc phd*rc
+       - chmod ug+w phd*rc
+       ./makeit phd <template.cshrc >phd_mowgli.cshrc
+       ./makeit phd <template.rc >phd_mowgli.rc
+       ./makeit marcello <template.cshrc >phd_marcello_mowgli.cshrc
+       ./makeit marcello <template.rc >phd_marcello_mowgli.rc
+       chmod a+x phd*rc
+       chmod ug-w phd*rc
 
 clean:
-       rm -f marcello*rc phd*rc
+       rm -f phd*rc
 
 cleanbak:
        rm -f *~
index afad01f3cff825f4eef11e5e2a255cf1c34aad63..64553523e67789a47b17043c3ff6c38005cbf619 100755 (executable)
@@ -1,11 +1,10 @@
 #!/bin/sh
 
-if test $# != 3; then
-       echo "Usage: makeit <version> <where> <to>"
+if test $# != 1; then
+       echo "Usage: makeit <from>"
        echo
-       echo "       <version> must be V7_mowgli"
-       echo "       <from/to> is either phd or marcello"
+  echo "<from> is the machine we connect from"
        exit 1
 fi
        
-sed -e "s/@COQV@/$1/" -e "s/@WHERE@/$2/" -e "s/@FROM@/$3/"
+sed -e "s/@FROM@/$1/"
index 1038c90d9cb48f16d1456c0ea4861517b9b62799..7cba3740b156e34b7bc5b4427ab3647c536e0cce 100644 (file)
@@ -1,31 +1,13 @@
 
-set COQV=@COQV@
-set WHERE=@WHERE@
+set COQV=V7_mowgli
+set WHERE=phd
 set FROM=@FROM@
 
 setenv CVS_RSH=ssh
 
 echo "Configuring HELM for $WHERE (from $FROM), Coq $COQV"
 
-if ($WHERE == phd) then
-       setenv HELMROOT /projects/helm
-       setenv JAVA_HOME /opt/java/jdk1.3
-       setenv PATH .:$JAVA_HOME/bin/:$PATH
-       if ($?LD_LIBRARY_PATH == 1) then
-               setenv LD_LIBRARY_PATH /usr/local/lib:$LD_LIBRARY_PATH
-       else
-               setenv LD_LIBRARY_PATH /usr/local/lib
-       endif
-else
-       setenv HELMROOT /home/projects/helm
-       setenv JAVA_HOME /usr/local/jdk1.3
-       setenv PATH .:$JAVA_HOME/bin:$HELMROOT/local/bin:$PATH
-       if ($?LD_LIBRARY_PATH == 1) then
-               setenv LD_LIBRARY_PATH $HELMROOT/local/lib:$LD_LIBRARY_PATH
-       else
-               setenv LD_LIBRARY_PATH $HELMROOT/local/lib
-       endif
-endif
+setenv HELMROOT /projects/helm
 
 if ($WHERE == $FROM) then
        set FONTROOT=$HELMROOT
@@ -52,20 +34,16 @@ setenv HTTP_GETTER_XSLT_INDEXNAME xslt_index.txt
 setenv HELM_ANNOTATIONS_DIR pippo
 setenv HELM_ANNOTATIONS_URL pippo
 setenv UWOBO_PANEL_CONF /projects/helm/public_html/uwobo/panel/control.html
-if ($COQV == V7_mowgli) then
-       setenv UWOBO_PORT 58080
-       setenv UWOBO_LOG_FILE /projects/helm/log/uwobo
-       setenv HTTP_GETTER_PORT 58081
-       setenv URI_SET_QUEUE_PORT 58082
-       setenv DRAW_GRAPH_PORT 58083
-       setenv PROOF_CHECKER_PORT 58084
-       setenv SEARCH_ENGINE_PORT 58085
-       setenv DRAW_GRAPH_DIR /projects/helm/daemons/graphs/tools
-       setenv HELM_UWOBO_URL http://mowgli.cs.unibo.it:$UWOBO_PORT/
-       setenv HTTP_GETTER_DTD_BASE_URL http://mowgli.cs.unibo.it/dtd
-else
-  echo "Error: Version $COQV not recognized"
-endif
+setenv UWOBO_PORT 58080
+setenv UWOBO_LOG_FILE /projects/helm/log/uwobo
+setenv HTTP_GETTER_PORT 58081
+setenv URI_SET_QUEUE_PORT 58082
+setenv DRAW_GRAPH_PORT 58083
+setenv PROOF_CHECKER_PORT 58084
+setenv SEARCH_ENGINE_PORT 58085
+setenv DRAW_GRAPH_DIR /projects/helm/daemons/graphs/tools
+setenv HELM_UWOBO_URL http://mowgli.cs.unibo.it:$UWOBO_PORT/
+setenv HTTP_GETTER_DTD_BASE_URL http://mowgli.cs.unibo.it/dtd
 setenv HELM_GETTER_URL http://mowgli.cs.unibo.it:$HTTP_GETTER_PORT/
 setenv SEARCH_ENGINE_HTML_DIR /projects/helm/daemon/searchEngine/html
 
index 629ce1c22c4326600729db37310b2024b8bb5bd5..c22271bcf428489747b2acf8c9d8d4ff59b6ab06 100644 (file)
@@ -1,23 +1,13 @@
 
-COQV=@COQV@
-WHERE=@WHERE@
+COQV=V7_mowgli
+WHERE=phd
 FROM=@FROM@
 
 export CVS_RSH=ssh
 
 echo "Configuring HELM for $WHERE (from $FROM), Coq $COQV"
 
-if test $WHERE = phd; then
-       export HELMROOT=/projects/helm
-       export JAVA_HOME=/opt/java/jdk1.3
-       export PATH=.:$JAVA_HOME/bin/:$PATH
-       export LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH
-else
-       export HELMROOT=/home/projects/helm
-       export JAVA_HOME=/usr/local/jdk1.3
-       export PATH=.:$JAVA_HOME/bin:$HELMROOT/local/bin:$PATH
-       export LD_LIBRARY_PATH=$HELMROOT/local/lib:$LD_LIBRARY_PATH
-fi
+export HELMROOT=/projects/helm
 
 if test $WHERE = $FROM; then
        FONTROOT=$HELMROOT
@@ -44,20 +34,16 @@ export HTTP_GETTER_XSLT_INDEXNAME=xslt_index.txt
 export HELM_ANNOTATIONS_DIR=pippo
 export HELM_ANNOTATIONS_URL=pippo
 export UWOBO_PANEL_CONF=/projects/helm/public_html/uwobo/panel/control.html
-if test  $COQV = V7_mowgli; then
-       export UWOBO_PORT=58080
-       export UWOBO_LOG_FILE=/projects/helm/log/uwobo
-       export HTTP_GETTER_PORT=58081
-       export URI_SET_QUEUE_PORT=58082
-       export DRAW_GRAPH_PORT=58083
-       export PROOF_CHECKER_PORT=58084
-       export SEARCH_ENGINE_PORT=58085
-       export DRAW_GRAPH_DIR=/projects/helm/daemons/graphs/tools
-       export HELM_UWOBO_URL=http://mowgli.cs.unibo.it:$UWOBO_PORT/
-       export HTTP_GETTER_DTD_BASE_URL=http://mowgli.cs.unibo.it/dtd
-else
-  echo "Error: Version $COQV not recognized"
-fi
+export UWOBO_PORT=58080
+export UWOBO_LOG_FILE=/projects/helm/log/uwobo
+export HTTP_GETTER_PORT=58081
+export URI_SET_QUEUE_PORT=58082
+export DRAW_GRAPH_PORT=58083
+export PROOF_CHECKER_PORT=58084
+export SEARCH_ENGINE_PORT=58085
+export DRAW_GRAPH_DIR=/projects/helm/daemons/graphs/tools
+export HELM_UWOBO_URL=http://mowgli.cs.unibo.it:$UWOBO_PORT/
+export HTTP_GETTER_DTD_BASE_URL=http://mowgli.cs.unibo.it/dtd
 export HELM_GETTER_URL=http://mowgli.cs.unibo.it:$HTTP_GETTER_PORT/
 export SEARCH_ENGINE_HTML_DIR=/projects/helm/daemons/searchEngine/html