summaryrefslogtreecommitdiffstats
path: root/create
diff options
context:
space:
mode:
authorsasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-12 14:02:14 +0000
committersasha <sasha@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2008-03-12 14:02:14 +0000
commit8b4e7131df42d9c4dcdf02835ae8d786e070c2a1 (patch)
tree8dd4aa969712f06b25f6097dc6832e0961f4de61 /create
parentd7236ae23d15ce448138ba16d1e5069f06198b94 (diff)
downloadzabbix-8b4e7131df42d9c4dcdf02835ae8d786e070c2a1.tar.gz
zabbix-8b4e7131df42d9c4dcdf02835ae8d786e070c2a1.tar.xz
zabbix-8b4e7131df42d9c4dcdf02835ae8d786e070c2a1.zip
- [DEV-137] fir for dbschema.c
[svn merge svn://svn.zabbix.com/tags/1.5 -r5477:5480] git-svn-id: svn://svn.zabbix.com/trunk@5481 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'create')
-rw-r--r--create/Makefile.am2
-rw-r--r--create/schema/Makefile.am18
2 files changed, 1 insertions, 19 deletions
diff --git a/create/Makefile.am b/create/Makefile.am
index 05a89596..4220dd09 100644
--- a/create/Makefile.am
+++ b/create/Makefile.am
@@ -1,6 +1,6 @@
## Process this file with automake to produce Makefile.in
-SUBDIRS = schema
+#SUBDIRS = schema
EXTRA_DIST = \
data/data.sql \
diff --git a/create/schema/Makefile.am b/create/schema/Makefile.am
deleted file mode 100644
index 22744401..00000000
--- a/create/schema/Makefile.am
+++ /dev/null
@@ -1,18 +0,0 @@
-## Process this file with automake to produce Makefile.in
-
-## "dist-hook" run after the distribution directory is filled, but before the actual tar (or shar) file is created.
-dist-hook:
- $(srcdir)/gen.pl mysql > $(distdir)/mysql.sql
- $(srcdir)/gen.pl postgresql > $(distdir)/postgresql.sql
- $(srcdir)/gen.pl sqlite > $(distdir)/sqlite.sql
- $(srcdir)/gen.pl oracle > $(distdir)/oracle.sql
- $(srcdir)/gen.pl c >$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- echo -e "\n#ifdef HAVE_MYSQL\nconst char *db_schema= {\"\\" >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- cat $(distdir)/mysql.sql|sed -e 's/\t\t*/ /g' -e 's/$$/\\/' >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- echo -e "\"};\n#elif HAVE_POSTGRESQL\nconst char *db_schema = {\"\\" >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- cat $(distdir)/postgresql.sql|sed -e 's/\t\t*/ /g' -e 's/$$/\\/' >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- echo -e "\"};\n#elif HAVE_ORACLE\nconst char *db_schema = {\"\\" >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- cat $(distdir)/oracle.sql|sed -e 's/\t\t*/ /g' -e 's/$$/\\/' >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- echo -e "\"};\n#elif HAVE_SQLITE3\nconst char *db_schema = {\"\\" >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- cat $(distdir)/sqlite.sql|sed -e 's/\t\t*/ /g' -e 's/$$/\\/' >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c
- echo -e "\"};\n#endif /* HAVE_SQLITE3 */\n" >>$(top_distdir)/src/libs/zbxdbhigh/dbschema.c