Skip to content
Snippets Groups Projects
Commit 90b32873 authored by Bernd Flemisch's avatar Bernd Flemisch
Browse files

removed unnecessary util directory, the extraction scripts are part of dumux-devel

git-svn-id: svn://svn.iws.uni-stuttgart.de/DUMUX/dumux/trunk@4724 2fb0f335-1f38-0410-981e-8018bf24f1b0
parent 355c04c0
No related branches found
No related tags found
No related merge requests found
#! /usr/bin/python
# Extracts the paragraph with the detailed description of a class from
# a LaTeX file generated by doxygen. This script is used to avoid
# duplication between the API reference documentation and the DuMuX
# handbook.
import sys
import re
while True:
curLine = sys.stdin.readline().strip()
if curLine == "":
sys.exit(0)
if re.search("\\\\[a-z]*section\{Detailed Description\}", curLine):
# ignore one line
i = 0
while i < 1:
sys.stdin.readline().strip()
i += 1
# ignore all lines until we hit the next paragraph
i = 0
while i < 2:
curLine = sys.stdin.readline().strip()
if curLine == "":
i += 1
# print the next paragraph
while True:
curLine = sys.stdin.readline().strip()
match = re.search("(\\\\[a-z]*section|\\\\begin\\{Compact)", curLine)
if match is not None:
print curLine[:match.start()]
sys.exit(0)
print curLine
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