Ajout d'une regle pour gnrer un fichier global de creation

This commit is contained in:
Rodolphe Quiedeville 2003-03-01 16:27:28 +00:00
parent f7f30e551c
commit 95e49943f1

View File

@ -25,6 +25,8 @@ MYSQL=mysql
BASE=dolibarr
OPTIONS=
TABLES=$(shell find tables/ -name "*sql")
all:
cd tables \
&& make show
@ -78,3 +80,7 @@ createpriv:
$(MYSQL) mysql -e "update db set index_priv = 'Y' where db='$(BASE)' ; "
$(MYSQL) mysql -e "update db set alter_priv = 'Y' where db='$(BASE)' ; "
$(MYSQL) mysql -e "flush privileges ; "
mysql.sql: $(TABLES)
find tables/ -name "*sql" | xargs cat | grep -v ^-- > mysql.sql