Subversion Repositories eFlore/Applications.coel

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1658 → Rev 1659

/trunk/jrest/jrest.ini.php.defaut
1,6 → 1,6
;<?/*
[settings]
baseURL = "/coel/jrest/"
baseURL = "/eflore/coel/jrest/"
 
; COEL
[coel]
11,8 → 11,8
database = tb_coel
guid = "urn:lsid:tela-botanica.org:%s:%s"
editeur = "Tela Botanica"
urlBaseCoel = "http://localhost/coel/war/Coel.html"
urlBaseJrest = "http://localhost/coel/jrest/"
urlBaseCoel = "http://www.tela-botanica.org/eflore/coel/Coel.html"
urlBaseJrest = "http://www.tela-botanica.org/eflore/coel/jrest/"
aideBaseUrlTpl = "http://www.tela-botanica.org/wikini/eflore/wakka.php?wiki="
urlAnnuaire = "http://www.tela-botanica.org/client/eflore_chatin/services/annuaire_tela"
loginAnnuaire =
21,4 → 21,4
correctionMdp =
idProjetUtilisateurs = 3
 
;*/?>
;*/?>
/trunk/jrest/test-conf.sed
New file
0,0 → 1,2
/^database/s|= .*|= tb_coel_test|
/^(baseURL|urlBaseCoel|urlBaseJrest)/s|/eflore/|/eflore-test/|
/trunk/jrest/Makefile
New file
0,0 → 1,14
# installation de l'espace de test
# syntax:
# make <cible> [annu_u=<bdd_utilisateur> [annu_p=<bdd_mot_de_passe>]]
all: test
 
test:
@test '!' -e jrest.ini.php || { echo "jrest.ini.php exists"; exit 1; }
@cp jrest.ini.php.defaut jrest.ini.php
@sed -r -i -f test-conf.sed jrest.ini.php
@test -n "$(annu_u)" -o -n "$(annu_p)" && make bddconf || true
 
bddconf:
@test -n "$(annu_u)" && sed -r -i "/^loginAnnuaire/s/= .*/= \"$(annu_u)\"/" jrest.ini.php || true
@test -n "$(annu_p)" && sed -r -i "/^mdpAnnuaire/s/= .*/= \"$(annu_p)\"/" jrest.ini.php || true
Property changes:
Added: svn:eol-style
+native
\ No newline at end of property