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{
# 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]);
plumed_doc[doc]=FILENAME ":" FNR;
switch($(NF-1)){
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);
n=split($(NF-1),array,"_");
if(n==1) {
switch($(NF-1)){
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);
}
} 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