Subversion Repositories eFlore/Applications.coel

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1659 raphael 1
# installation de l'espace de test
2
# syntax:
3
# make <cible> [annu_u=<bdd_utilisateur> [annu_p=<bdd_mot_de_passe>]]
4
all: test
5
 
6
test:
7
	@test '!' -e jrest.ini.php || { echo "jrest.ini.php exists"; exit 1; }
8
	@cp jrest.ini.php.defaut jrest.ini.php
9
	@sed -r -i -f test-conf.sed jrest.ini.php
10
	@test -n "$(annu_u)" -o -n "$(annu_p)" && make bddconf || true
11
 
12
bddconf:
13
	@test -n "$(annu_u)" &&  sed -r -i "/^loginAnnuaire/s/= .*/= \"$(annu_u)\"/" jrest.ini.php || true
14
	@test -n "$(annu_p)" &&  sed -r -i "/^mdpAnnuaire/s/= .*/= \"$(annu_p)\"/" jrest.ini.php || true