Permalink
Browse files

One p7_oprofile_Clone() call updated to p7_oprofile_Shadow(),

following API change in hmmer.

'make tags' changed to call a new makeTAGS.sh script instead.  By
running ./makeTAGS.sh directly, you can use tag searching without
needing to ./configure a Makefile. In my src/, I now create a
supertags file for HMMER, Easel, and Infernal, so I can easily search
all our Easel- or HMMER-dependent code when I'm changing something in
an API (like p7_oprofile_Clone() getting renamed).
  • Loading branch information...
1 parent 6fc6b29 commit d8352498fb5c74f09a2bfcfa5c169180e8caaddf @cryptogenomicon cryptogenomicon committed Feb 29, 2016
Showing with 19 additions and 7 deletions.
  1. +3 −6 Makefile.in
  2. +15 −0 makeTAGS.sh
  3. +1 −1 src/cmsearch.c
View
@@ -227,10 +227,7 @@ distclean:
# "make TAGS": emacs etags database, for searching the whole source tree.
TAGS:
- etags src/*.[ch] src/*.in
- etags -a testsuite/*.[ch] testsuite/*.in
- etags -a easel/*.[ch] easel/*.in
+ ./makeTAGS.sh
+
+
-################################################################
-# @LICENSE@
-################################################################
View
@@ -0,0 +1,15 @@
+#! /bin/sh
+
+etags configure.ac
+etags -a INSTALL
+etags -a LICENSE
+
+# Recursively add all .c, .h, .pl, *.tex, *.man
+find . -name "*.c" -print -or -name "*.h" -print | xargs etags -a
+find . -name "*.pl" -print -or -name "*.pm" -print | xargs etags -a
+find . -name "*.sh" -print | xargs etags -a
+find . -name "*.tex" -print | xargs etags -a
+find . -name "*.man" -print | xargs etags -a
+find . -name "*.in" -print | xargs etags -a
+find . -name "*.sqc" -print | xargs etags -a
+find . -name "*README" -print | xargs etags -a
View
@@ -2328,7 +2328,7 @@ clone_info(ESL_GETOPTS *go, WORKER_INFO *src_info, WORKER_INFO *dest_infoA, int
if(src_info->Rgm != NULL) { if((dest_infoA[i].Rgm = p7_profile_Clone(src_info->Rgm)) == NULL) goto ERROR; }
if(src_info->Lgm != NULL) { if((dest_infoA[i].Lgm = p7_profile_Clone(src_info->Lgm)) == NULL) goto ERROR; }
if(src_info->Tgm != NULL) { if((dest_infoA[i].Tgm = p7_profile_Clone(src_info->Tgm)) == NULL) goto ERROR; }
- if((dest_infoA[i].om = p7_oprofile_Clone(src_info->om)) == NULL) goto ERROR;
+ if((dest_infoA[i].om = p7_oprofile_Shadow(src_info->om)) == NULL) goto ERROR;
if((dest_infoA[i].bg = p7_bg_Create(src_info->bg->abc)) == NULL) goto ERROR;
if(dest_infoA[i].p7_evparam == NULL) ESL_ALLOC(dest_infoA[i].p7_evparam, sizeof(float) * CM_p7_NEVPARAM);
esl_vec_FCopy(src_info->cm->fp7_evparam, CM_p7_NEVPARAM, dest_infoA[i].p7_evparam);

0 comments on commit d835249

Please sign in to comment.