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/makeDb/outside/hgKegg2/hgKegg2.c src/hg/makeDb/outside/hgKegg2/hgKegg2.c
index 0af2f8b..7e39258 100644
--- src/hg/makeDb/outside/hgKegg2/hgKegg2.c
+++ src/hg/makeDb/outside/hgKegg2/hgKegg2.c
@@ -1,86 +1,86 @@
 /* hgKegg2 - creates keggPathway.tab and keggMapDesc.tab files for KG links to KEGG Pathway Map */
 
 /* 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 "hCommon.h"
 #include "hdb.h"
 
 void usage()
 /* Explain usage and exit. */
 {
 errAbort(
   "hgKegg2 - creates keggPathway.tab and keggMapDesc.tab files for KG links to KEGG Pathway Map"
   "usage:\n"
   "   hgKegg2 kgTempDb roDb\n"
   "      kgTempDb is the KG build temp database name\n"
   "      roDb is the read only genome database name\n"
   "example: hgKegg2 kgMm6ATemp mm6\n");
 }
 
 int main(int argc, char *argv[])
 {
 struct sqlConnection *conn, *conn2, *conn3;
 char query[256], query3[256];
 struct sqlResult *sr, *sr3;
 char **row, **row3;
 FILE *o1, *o2;
 
 char *locusID;	/* LocusLink ID */
 char *refAC;	/* Refseq accession.version */
 char *kgTempDbName, *roDbName; 
 char cond_str[200];
 char *kgID;
 char *mapID;
 char *desc;
 
 if (argc != 3)  usage();
 kgTempDbName    = argv[1];
 roDbName 	= argv[2];
 
 conn = hAllocConn(roDbName);
 conn2= hAllocConn(roDbName);
 conn3= hAllocConn(roDbName);
 
 o1 = fopen("j.dat",  "w");
 o2 = fopen("jj.dat", "w");
     
 sqlSafef(query, sizeof query, "select kgID, refseq from %s.kgXref", roDbName);
 sr = sqlMustGetResult(conn, query);
 row = sqlNextRow(sr);
 while (row != NULL)
     {
     kgID  = row[0];
     refAC = row[1];
 	
     sqlSafefFrag(cond_str, sizeof cond_str, "refseq='%s'", refAC);
     locusID = sqlGetField("entrez", "entrezRefProt", "geneID", cond_str);
     if (locusID != NULL)
 	{
         sqlSafef(query3, sizeof query3, "select * from %s.keggList where locusID = '%s'", kgTempDbName, locusID);
         sr3 = sqlGetResult(conn3, query3);
         while ((row3 = sqlNextRow(sr3)) != NULL)
             {
             mapID   = row3[1];
 	    desc    = row3[2];
 	    fprintf(o1, "%s\t%s\t%s\n", kgID, locusID, mapID);fflush(o1);
 	    fprintf(o2, "%s\t%s\n", mapID, desc);
 	    row3 = sqlNextRow(sr3);
             }
         sqlFreeResult(&sr3);
 	}
     row = sqlNextRow(sr);
     }
 
 fclose(o1);
 fclose(o2);
 hFreeConn(&conn);
 hFreeConn(&conn2);
 
 mustSystem("cat j.dat|sort|uniq >keggPathway.tab");
 mustSystem("cat jj.dat|sort|uniq >keggMapDesc.tab");
 mustSystem("rm j.dat");
 mustSystem("rm jj.dat");
 return(0);
 }