4898794edd81be5285ea6e544acbedeaeb31bf78 max Tue Nov 23 08:10:57 2021 -0800 Fixing pointers to README file for license in all source code files. refs #27614 diff --git src/hg/encode3/encodeDataWarehouse/edwRunOnIds/edwRunOnIds.c src/hg/encode3/encodeDataWarehouse/edwRunOnIds/edwRunOnIds.c index 6d02d83..12d677c 100644 --- src/hg/encode3/encodeDataWarehouse/edwRunOnIds/edwRunOnIds.c +++ src/hg/encode3/encodeDataWarehouse/edwRunOnIds/edwRunOnIds.c @@ -1,62 +1,62 @@ /* edwRunOnIds - Run a edw command line program (one that takes startId endId as it's two parameters) for a range of ids, putting it on edwJob queue.. */ /* Copyright (C) 2013 The Regents of the University of California - * See README in this or parent directory for licensing information. */ + * See kent/LICENSE or http://genome.ucsc.edu/license/ for licensing information. */ #include "common.h" #include "linefile.h" #include "hash.h" #include "options.h" #include "jksql.h" #include "encodeDataWarehouse.h" #include "edwLib.h" char *runTable = "edwTempJob"; void usage() /* Explain usage and exit. */ { errAbort( "edwRunOnIds - Run a edw command line program (one that takes startId endId as it's two parameters) for a range of ids, putting it on edwJob queue.\n" "usage:\n" " edwRunOnIds program 'queryString'\n" "Where queryString is a SQL command that should return a list of fileIds.\n" "Example\n" " edwRunOnIds edwFixQualScore 'select fileId from edwFastqFile where qualMean < 0'" "options:\n" " -runTable=%s -job table to use\n" , runTable ); } /* Command line validation table. */ static struct optionSpec options[] = { {"runTable", OPTION_STRING}, {NULL, 0}, }; void edwRunOnIds(char *program, char *queryString) /* edwRunOnIds - Run a edw command line program (one that takes startId endId as it's two parameters) for a range of ids, * putting it on edwJob queue. */ { struct sqlConnection *conn = edwConnectReadWrite(); struct slName *id, *idList = sqlQuickList(conn, queryString); for (id = idList; id != NULL; id = id->next) { char query[512]; sqlSafef(query, sizeof(query), "insert into %s (commandLine) values ('%s %s %s')", runTable, program, id->name, id->name); sqlUpdate(conn, query); } } int main(int argc, char *argv[]) /* Process command line. */ { optionInit(&argc, argv, options); if (argc != 3) usage(); runTable = optionVal("runTable", runTable); edwRunOnIds(argv[1], argv[2]); return 0; }