summaryrefslogtreecommitdiff
path: root/textproc/mysqlviz/files/patch-mysqlviz
blob: 219230ccbc44041df048092cd577688e7188ec81 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--- mysqlviz.orig	2010-11-12 23:53:55 UTC
+++ mysqlviz
@@ -184,17 +184,16 @@ exit(0);
 
 # 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";