# installation de l'espace de test # syntax: # make [annu_u= [annu_p=]] 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