Blame | Last modification | View Log | RSS feed
# 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