From: Enrico Tassi Date: Mon, 11 Jul 2005 14:09:34 +0000 (+0000) Subject: matita.conf.xml.sample is now generated X-Git-Tag: pre_notation~43 X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=commitdiff_plain;h=f9ebeb4695e5598fe9ffa80d938bdd484ac99dab;p=helm.git matita.conf.xml.sample is now generated --- diff --git a/helm/matita/Makefile.in b/helm/matita/Makefile.in index 009a6cec1..4c3d9f305 100644 --- a/helm/matita/Makefile.in +++ b/helm/matita/Makefile.in @@ -54,7 +54,23 @@ CCMOS = \ CLEANCMOS = $(CCMOS) -all: matita matitac matitatop cicbrowser matitadep matitaclean +all: matita.conf.xml matita matitac matitatop cicbrowser matitadep matitaclean + +matita.conf.xml: matita.conf.xml.sample + @echo + @echo "matita.conf.xml.sample is newer than matita.conf.xml" + @echo + @echo "PLEASE update your configuration file!" + @echo "(copying matita.conf.xml.sample should work)" + @echo + @false + +matita.conf.xml.sample: matita.conf.xml.sample.in + autoconf + ./configure + @echo + @echo "WARNING: The configuration sample file has changed!" + @echo ifeq ($(HAVE_OCAMLOPT),yes) CMXS = $(patsubst %.cmo,%.cmx,$(CMOS)) @@ -127,6 +143,7 @@ distclean: clean rm -f config.log config.status Makefile buildTimeConf.ml rm -f matita.glade.bak matita.gladep.bak rm -rf autom4te.cache/ + rm -f configure matita.conf.xml.sample tests: matitac matitadep matitaclean @(cd library && make clean all) diff --git a/helm/matita/configure.ac b/helm/matita/configure.ac index 7e2591f8f..293d8a767 100644 --- a/helm/matita/configure.ac +++ b/helm/matita/configure.ac @@ -90,6 +90,8 @@ if test "$DEBUG" = "true"; then fi RT_BASE_DIR=`pwd` +USER_HOME=`echo $HOME` +USER_NAME=`echo $USER` AC_SUBST(CAMLP4O) AC_SUBST(DEBUG) @@ -102,8 +104,11 @@ AC_SUBST(HAVE_OCAMLOPT) AC_SUBST(LABLGLADECC) AC_SUBST(OCAMLFIND) AC_SUBST(RT_BASE_DIR) +AC_SUBST(USER_HOME) +AC_SUBST(USER_NAME) AC_OUTPUT([ + matita.conf.xml.sample buildTimeConf.ml Makefile ]) diff --git a/helm/matita/matita.conf.xml.sample b/helm/matita/matita.conf.xml.sample deleted file mode 100644 index 56a04d605..000000000 --- a/helm/matita/matita.conf.xml.sample +++ /dev/null @@ -1,30 +0,0 @@ - - -
- true - true - cic:/matita/ - .matita/xml - @@OWNER@@ - - false -
-
- - mowgli.cs.unibo.it - helm - matita -
-
- .matita/getter/cache - /projects/helm/xml/dtd - - cic:/ - file:///projects/helm/library/coq_contribs/ - - - cic:/matita/ - .matita/xml/matita/ - -
-
diff --git a/helm/matita/matita.conf.xml.sample.in b/helm/matita/matita.conf.xml.sample.in new file mode 100644 index 000000000..b353a8791 --- /dev/null +++ b/helm/matita/matita.conf.xml.sample.in @@ -0,0 +1,30 @@ + + +
+ true + true + cic:/matita/ + @USER_HOME@/.matita/xml + @USER_NAME@ + + false +
+
+ + mowgli.cs.unibo.it + helm + matita +
+
+ @USER_HOME@/.matita/getter/cache + /projects/helm/xml/dtd + + cic:/ + file:///projects/helm/library/coq_contribs/ + + + cic:/matita/ + file://@USER_HOME@/.matita/xml/matita/ + +
+