Merge pull request #136 from kenrestivo/generate-schemaspy

First attempt at auto-generating the schemaspy docs
This commit is contained in:
redmatrix 2015-11-10 08:41:02 +11:00
commit 92577ddaed
2 changed files with 26 additions and 0 deletions

17
hubzilla_er/Makefile Normal file
View file

@ -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

9
util/schemaspy Executable file
View file

@ -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 .");