2017-03-29 Fred Gleason <fredg@paravelsystems.com>

* Added a man page for rddbcheck(8).
This commit is contained in:
Fred Gleason
2017-03-29 12:38:01 -04:00
parent 5dc6fa92a9
commit aeccd2600e
6 changed files with 179 additions and 2 deletions

View File

@@ -164,7 +164,6 @@ MainObject::MainObject(QObject *parent)
if(!orphan_group_name.isEmpty()) {
QString sql=QString().sprintf("select NAME from GROUPS where NAME=\"%s\"",
(const char *)orphan_group_name);
printf("SQL: %s\n",(const char *)sql);
QSqlQuery *q=new QSqlQuery(sql);
if(!q->first()) {
fprintf(stderr,"rddbcheck: invalid group \"%s\"\n",

View File

@@ -31,7 +31,7 @@
#include <rdcmd_switch.cpp>
#include <rdstation.h>
#define RDDBCHECK_USAGE "[options]\n\nCheck the Rivendell database and audio store for consistency\nand correctness.\n\n--yes\n Answer all questions with 'yes'\n\n--no\n Answer all questions with 'no'\n\n--user=<username>\n Connect using the Rivendell user <username> (default is \"user\").\n\n--orphan-group=<group-name>\n Move carts with missing/invalid GROUP information to the <group-name>\n group.\n\n--dump-cuts-dir=<dir-name>\n Move orphaned cut audio to the <dir-name> directory.\n\n--rehash=<cartnum>/ALL"
#define RDDBCHECK_USAGE "[options]\n"
//
// Global Variables