[ooo-build-commit] .: bin/fixguard.py
Petr Mladek
pmladek at kemper.freedesktop.org
Thu Oct 7 06:38:02 PDT 2010
bin/fixguard.py | 2 ++
1 file changed, 2 insertions(+)
New commits:
commit 663c37828b23139245e2837eeacb392a1cfa01ba
Author: Petr Mladek <pmladek at suse.cz>
Date: Thu Oct 7 15:35:30 2010 +0200
extend bin/fixguard.py to remove commented out guards
it is just alternative line in script; it is not used out of box
diff --git a/bin/fixguard.py b/bin/fixguard.py
index 843d85b..3a3b85d 100755
--- a/bin/fixguard.py
+++ b/bin/fixguard.py
@@ -6,6 +6,8 @@ import shutil
import tempfile
exp = '#ifndef.*_(?:H|HXX|HRC|HPP)_*[ \t]*\/*.*\n(#include.*\n)#endif[ \t]*\/*.*\n'
+# alternative pattern to remove commented out include quards
+#exp = '//.*#ifndef.*_(?:H|HXX|HRC|HPP)_*[ \t]*\/*.*\n(//.*#include.*\n)//.*#endif[ \t]*\/*.*\n'
filename = sys.argv[1]
if not os.path.isfile(filename):
More information about the ooo-build-commit
mailing list