Skip to content
Snippets Groups Projects
Commit dc459a69 authored by Wuttke, Joachim's avatar Wuttke, Joachim
Browse files

prepare rearrangement of header blocks

parent 609126a2
No related branches found
No related tags found
No related merge requests found
...@@ -42,6 +42,20 @@ def edit( fn ): ...@@ -42,6 +42,20 @@ def edit( fn ):
raise Expection( "unexpected line 2" ) raise Expection( "unexpected line 2" )
if not re.search( r'^\/\/ \*{66}', a[15] ): if not re.search( r'^\/\/ \*{66}', a[15] ):
raise Expection( "unexpected line 15" ) raise Expection( "unexpected line 15" )
if not re.search( r'^\/\/ \*{66}', a[15] ):
raise Expection( "unexpected line 15" )
m=re.search( r'^\/\/\! \@file\s+(\S+)', a[12] )
if not m:
raise Expection( "unexpected line 12" )
file = m.group(1)
m=re.search( r'^\/\/\! \@brief\s+(\S+)', a[13] )
if not m:
raise Expection( "unexpected line 13" )
brief = m.group(1)
s = headertemplate.substitute( F=file, B=brief ) + a[16..-1]
# fd = open( fn, 'w' ) # fd = open( fn, 'w' )
# fd.write( s ) # fd.write( s )
......
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