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/encode/encodeCvTerm/encodeCvTerm.c src/hg/encode/encodeCvTerm/encodeCvTerm.c index 820ac44..e01843e 100644 --- src/hg/encode/encodeCvTerm/encodeCvTerm.c +++ src/hg/encode/encodeCvTerm/encodeCvTerm.c @@ -1,52 +1,52 @@ /* encodeCvTerm - print the RA stanza for an ENCODE Controlled Vocabulary term */ /* 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 "dystring.h" #include "cv.h" #include "hash.h" void usage() /* Explain usage and exit. */ { errAbort( "encodeCvTerm - print the .ra stanza for the selected ENCODE CV term\n" "usage:\n" " encodeCvTerm <type> <term> [<field>]\n" ); } void encodeCvTerm(char *type, char *term, char *field) /* print CV term ra*/ { struct hash *termHash = (struct hash *) cvOneTermHash(type, term); char *ret; if (!termHash) errAbort("Can't find term '%s' of type '%s' in CV", term, type); if (field) { ret = hashFindVal(termHash, field); if (!ret) errAbort("Can't find field '%s' in term '%s' of type '%s' in CV", field, term, type); } else ret = hashToRaString(termHash); puts(ret); } int main(int argc, char *argv[]) /* Process command line. */ { if (argc < 3) usage(); char *type = argv[1]; char *term = argv[2]; char *field = NULL; if (argc == 4) field = argv[3]; encodeCvTerm(type, term, field); return 0; }