ctf-writer: externalize libbabeltrace2-ctf-writer
[babeltrace.git] / extras / gen-babeltrace-h.py
index b604ea31af6876446636695823d748a41ff4a459..7c64a676e2220d5366ad63ab2d11cb6a34cdb89c 100644 (file)
@@ -24,10 +24,10 @@ def _get_sections(file):
             cur_title = m.group(1)
             continue
 
-        m = re.match(r'^\s+(babeltrace/.+\.h).*$', line)
+        m = re.match(r'^\s+(babeltrace2/.+\.h).*$', line)
 
         if m:
-            if m.group(1) != 'babeltrace/babeltrace.h':
+            if m.group(1) != 'babeltrace2/babeltrace.h':
                 cur_filenames.append(m.group(1))
 
             continue
@@ -45,6 +45,9 @@ def _c_includes_from_sections(sections):
     src = ''
 
     for section in sections:
+        if 'ctf' in section.title.lower():
+            continue
+
         src += '/* {} */\n'.format(section.title)
 
         for filename in sorted(section.filenames):
This page took 0.023447 seconds and 4 git commands to generate.