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/oneShot/addChrPsl/addChrPsl.c src/hg/oneShot/addChrPsl/addChrPsl.c index 70f9221..66379b2 100644 --- src/hg/oneShot/addChrPsl/addChrPsl.c +++ src/hg/oneShot/addChrPsl/addChrPsl.c @@ -1,58 +1,58 @@ /* addChrPsl - add chr to chromosome in psl file. */ /* Copyright (C) 2011 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 "psl.h" void usage() /* Explain usage and exit. */ { errAbort( "addChrPsl - add chr to chromosome in psl file.\n" "usage:\n" " addChrPsl old.psl new.psl\n"); } void addChrPsl(char *oldName, char *newName) /* addChrPsl - add chr to chromosome in psl file. */ { char chrName[64]; struct lineFile *lf = pslFileOpen(oldName); FILE *f = mustOpen(newName, "w"); struct psl *pslList = NULL, *psl; char oName[64]; bool firstTime = TRUE; while ((psl = pslNext(lf)) != NULL) { if (firstTime) { strcpy(oName, psl->tName); sprintf(chrName, "chr%s", oName); firstTime = FALSE; } else { if (!sameString(psl->tName, oName)) errAbort("Expecting all targets to be the same in %s, but got %s and %s", oldName, oName, psl->tName); } psl->tName = chrName; slAddHead(&pslList, psl); } slSort(&pslList, pslCmpTarget); for (psl = pslList; psl != NULL; psl = psl->next) { pslTabOut(psl, f); } } int main(int argc, char *argv[]) /* Process command line. */ { if (argc != 3) usage(); addChrPsl(argv[1], argv[2]); }