-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'compile-warnings' into 'master'
Compile warnings Closes #25, #20, and #21 See merge request !9
- Loading branch information
Showing
136 changed files
with
11,495 additions
and
10,790 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#! /usr/bin/env python | ||
# get lines containing the documentation example of a gromos block between 'INFO <<"' and '..\n";' | ||
# and output them as snippets that can be referred to in doxygen comments using @snippet | ||
|
||
import sys, os | ||
|
||
if len(sys.argv) < 2: | ||
sys.exit("USAGE: " + sys.argv[0] + " <filenames") | ||
|
||
for f in sys.argv[1:]: | ||
with open(f, "r") as fi: | ||
snipping=0 | ||
for line in fi: | ||
if snipping==0: | ||
if line.strip().replace(" ", "").replace("\t","").startswith('exampleblock<<"'): | ||
snipping=1 | ||
blockname=line.split('"')[-2].split("\\n")[0] | ||
print("//! ["+blockname+"]") | ||
print(blockname) | ||
elif snipping==1: | ||
print(line.split('"')[-2].split("\\n")[0]+" ") | ||
if line.strip().replace(" ", "").replace("\t","").startswith('exampleblock<<"END'): | ||
print("//! ["+blockname+"]\n") | ||
snipping=0 | ||
|
Oops, something went wrong.