Skip to content
Snippets Groups Projects
Commit 7ba72378 authored by carlocamilloni's avatar carlocamilloni
Browse files

plumedcheck: allow to check for XXX_TOOLS and XXX_INTERNAL

@valsson @giovannibussi could you double check that?
parent 5dddfbcf
No related branches found
No related tags found
No related merge requests found
...@@ -335,18 +335,35 @@ BEGINFILE{ ...@@ -335,18 +335,35 @@ BEGINFILE{
# DOC: way the manual is generated, a cltool cannot have the same name of an action. # DOC: way the manual is generated, a cltool cannot have the same name of an action.
if(doc in plumed_doc) error("multi_doc","doc " doc " already at "plumed_doc[action]); if(doc in plumed_doc) error("multi_doc","doc " doc " already at "plumed_doc[action]);
plumed_doc[doc]=FILENAME ":" FNR; plumed_doc[doc]=FILENAME ":" FNR;
switch($(NF-1)){ n=split($(NF-1),array,"_");
case "TOOLS": if(n==1) {
plumed_doc_cltools[doc]=FILENAME ":" FNR; switch($(NF-1)){
information("documented_cltool","doc " doc); case "TOOLS":
break; plumed_doc_cltools[doc]=FILENAME ":" FNR;
case "INTERNAL": information("documented_cltool","doc " doc);
plumed_doc_internal[doc]=FILENAME ":" FNR; break;
information("documented_internal","doc " doc); case "INTERNAL":
break; plumed_doc_internal[doc]=FILENAME ":" FNR;
default: information("documented_internal","doc " doc);
plumed_doc_action[doc]=FILENAME ":" FNR; break;
information("documented_action","doc " doc); default:
plumed_doc_action[doc]=FILENAME ":" FNR;
information("documented_action","doc " doc);
}
} else {
switch(array[2]){
case "TOOLS":
plumed_doc_cltools[doc]=FILENAME ":" FNR;
information("documented_cltool","doc " doc);
break;
case "INTERNAL":
plumed_doc_internal[doc]=FILENAME ":" FNR;
information("documented_internal","doc " doc);
break;
default:
plumed_doc_action[doc]=FILENAME ":" FNR;
information("documented_action","doc " doc);
}
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment