freebsd-ports/textproc/mysqlviz/files/patch-mysqlviz
TAKATSU Tomonari 59a300d3c1 - Add new port: textproc/mysqlviz
Render a graphical representation of a MySQL or SQLite database
  from a mysqldump or sqlite3 .dump file.

  Features:
  - Can infer foreign key relationships if you do not have them defined
  - Handles partial dumps (FK to tables that are not defined within the dump)
  - Fast! Uses sed and grep for data extraction (MySQL only)

  WWW: http://code.google.com/p/mysqlviz/
2013-05-06 14:10:45 +00:00

25 lines
1.3 KiB
Text

--- mysqlviz.orig 2010-11-13 08:54:02.000000000 +0900
+++ mysqlviz 2013-05-06 17:56:14.000000000 +0900
@@ -184,17 +184,16 @@
# usage information
function usage() {
- global $argv;
- print '[' . basename($argv[0]) . " - mysql + sqlite database visualisation tool]\n\n";
+ print "[mysqlviz - mysql + sqlite database visualisation tool]\n\n";
print "usage:\n";
- print " " . $argv[0] . " -f <sqldumpfile> [-r]\n";
- print " ^--- 'redump' mode: generates a\n";
- print " mysqldump command line to redump.\n";
+ print " mysqlviz -f <sqldumpfile> [-r]\n";
+ print " ^--- 'redump' mode: generates a\n";
+ print " mysqldump command line to redump.\n";
print "toolchain:\n";
print " $ mysqldump -d db >db.sql # MySQL: -d = 'no data', only structure\n";
print " - OR -\n";
print " $ sqlite database.db .dump >db.sql # SQLite (also: 'sqlite3 ...')\n";
- print " $ $argv[0] -f ./db.sql >./db.dot # 'dot' is a graphviz format.\n";
+ print " $ mysqlviz -f ./db.sql >./db.dot # 'dot' is a graphviz format.\n";
print " $ dot -Tpng db.dot >db.png # generate image with graphviz\n\n";
print "notes:\n";
print " if you do not have any foreign keys defined, relationships will be\n";