aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorredmatrix <redmatrix@redmatrix.me>2015-11-10 08:41:02 +1100
committerredmatrix <redmatrix@redmatrix.me>2015-11-10 08:41:02 +1100
commit92577ddaed34f4402be29458f54ea55807b8b59e (patch)
treee854e8f4ab79be225809361e62c606f2a0ec3821
parentb99b6b5ae9cd0e89a65176f5ea3b88136a3b930a (diff)
parent0c8219e683ff9ff49f21c03c47376613b2dae916 (diff)
downloadvolse-hubzilla-92577ddaed34f4402be29458f54ea55807b8b59e.tar.gz
volse-hubzilla-92577ddaed34f4402be29458f54ea55807b8b59e.tar.bz2
volse-hubzilla-92577ddaed34f4402be29458f54ea55807b8b59e.zip
Merge pull request #136 from kenrestivo/generate-schemaspy
First attempt at auto-generating the schemaspy docs
-rw-r--r--hubzilla_er/Makefile17
-rwxr-xr-xutil/schemaspy9
2 files changed, 26 insertions, 0 deletions
diff --git a/hubzilla_er/Makefile b/hubzilla_er/Makefile
new file mode 100644
index 000000000..f36f01007
--- /dev/null
+++ b/hubzilla_er/Makefile
@@ -0,0 +1,17 @@
+#makefile for schemaspy
+
+
+#NOTE: This makefile sucks. It needs to have all run the script, and check that schemaspy and mysqlconn are present.
+
+schemaspy::
+ wget "http://downloads.sourceforge.net/project/schemaspy/schemaspy/SchemaSpy%205.0.0/schemaSpy_5.0.0.jar?r=http%3A%2F%2Fsourceforge.net%2Fprojects%2Fschemaspy%2F&ts=1447051240&use_mirror=iweb"
+
+mysqlconn::
+ wget http://central.maven.org/maven2/mysql/mysql-connector-java/5.1.17/mysql-connector-java-5.1.17.jar
+
+#TODO: install java and graphviz or check it is there
+
+install: schemaspy mysqlconn
+
+run:
+ ../util/schemaspy
diff --git a/util/schemaspy b/util/schemaspy
new file mode 100755
index 000000000..fdae74965
--- /dev/null
+++ b/util/schemaspy
@@ -0,0 +1,9 @@
+#!/usr/bin/env php
+<?php
+
+
+@include("../.htconfig.php");
+
+# -port is useless, ignored
+exec("java -jar schemaSpy_5.0.0.jar -t mysql -host $db_host -port $db_port -db $db_data -u $db_user -p $db_pass -dp mysql-connector-java-5.1.17.jar -meta zot.xml -o .");
+