4528d923d5f2496c93fcd8c53f9134912448bd42 braney Thu Aug 25 14:21:02 2022 -0700 Support multiple include files in a trackDb file. diff --git src/hg/utils/hubClone/hubClone.c src/hg/utils/hubClone/hubClone.c index 5ef81c9..e8f7b5c 100644 --- src/hg/utils/hubClone/hubClone.c +++ src/hg/utils/hubClone/hubClone.c @@ -197,33 +197,36 @@ } else if (hashLookup(stanza, "genome")) { printGenomeStanza(stanza, f, url, oneFile); } else if (hashLookup(stanza, "track")) { printTrackDbStanza(stanza, f, url, downloadDir); } else { // if there's an include file then open and print the include file includeFile = hashLookup(stanza, "include"); if (includeFile != NULL) { + for(; includeFile; includeFile = includeFile->next) + { char *newUrl = trackHubRelativeUrl(url, includeFile->val); printOneFile(newUrl, f, oneFile, downloadDir); } + } else printGenericStanza(stanza, f, url); } } lineFileClose(&lf); freeHash(&stanza); } struct trackHub *readHubFromUrl(char *hubUrl) /* readHubUrl: errCatch around trackHubOpen */ { struct trackHub *hub = NULL; struct errCatch *errCatch = errCatchNew(); if (errCatchStart(errCatch))