From 95e49943f10c3c70ddb2819cc15f8d686240dcbb Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Sat, 1 Mar 2003 16:27:28 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20d'une=20regle=20pour=20g=E9n=E9rer=20un?= =?UTF-8?q?=20fichier=20global=20de=20creation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mysql/Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mysql/Makefile b/mysql/Makefile index ba25a174398..a7ab93f18b4 100644 --- a/mysql/Makefile +++ b/mysql/Makefile @@ -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 \ No newline at end of file