aboutsummaryrefslogtreecommitdiffstats
path: root/src/script/remove_comment.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/script/remove_comment.py')
-rw-r--r--src/script/remove_comment.py23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/script/remove_comment.py b/src/script/remove_comment.py
new file mode 100644
index 0000000..673f3b3
--- /dev/null
+++ b/src/script/remove_comment.py
@@ -0,0 +1,23 @@
+#!/usr/bin/env python3
+
+import sys
+import re
+
+def convert_release():
+ skip_flag = False
+ for line in sys.stdin:
+ line = line.rstrip()
+ if not skip_flag:
+ if re.search(r'// +remove +doxygen +{', line):
+ skip_flag = True
+ continue
+ else:
+ if re.search(r'// +}', line):
+ skip_flag = False
+ continue
+ print(line)
+
+if __name__ == '__main__':
+ convert_release()
+
+# end of file