a44421a79fb36cc2036fe116b97ea3bc9590cd0c braney Fri Dec 2 09:34:39 2011 -0800 removed rcsid (#295) diff --git src/hg/hgsql/hgsql.c src/hg/hgsql/hgsql.c index 75c65b9..2d48cc1 100644 --- src/hg/hgsql/hgsql.c +++ src/hg/hgsql/hgsql.c @@ -1,39 +1,38 @@ /* hgsql - Execute some sql code using passwords in .hg.conf. */ #include "common.h" #include "options.h" #include "hgConfig.h" #include "sqlProg.h" -static char const rcsid[] = "$Id: hgsql.c,v 1.11 2010/03/23 23:19:18 markd Exp $"; void usage() /* Explain usage and exit. */ { errAbort( "hgsql - Execute some sql code using passwords in .hg.conf\n" "usage:\n" " hgsql [mysqlOptions] [database]\n" "or:\n" " hgsql [mysqlOptions] [database] < file.sql\n" "Generally anything in command line is passed to mysql\n" "after an implicit '-A -u user -ppassword'. If no options\n" "or database is specified, this usage message is printed." "\n" ); } void hgsql(int argc, char *argv[]) /* hgsql - Execute some sql code using passwords in .hg.conf. */ { static char *progArgs[] = {"-A", NULL}; sqlExecProg("mysql", progArgs, argc, argv); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc < 1) usage(); hgsql(argc-1, argv+1); return 0; /* never reaches here */ }