diff options
Diffstat (limited to 'toolkit/workben/layout/un-test.sh')
-rw-r--r-- | toolkit/workben/layout/un-test.sh | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/toolkit/workben/layout/un-test.sh b/toolkit/workben/layout/un-test.sh new file mode 100644 index 000000000000..ef2518ffa1b8 --- /dev/null +++ b/toolkit/workben/layout/un-test.sh @@ -0,0 +1,14 @@ +#! /bin/sh + +# un-test.sh: remove TEST_LAYOUT code from OO.o implementation + +sed -e 's!^#!@!' < $1\ + -e 's!$! /*$*/!' \ + -e 's!^@\(.*TEST_LAYOUT\)!#\1!'\ + | tee i \ + | cpp -traditional -C -CC -DNON_LAYOUT_COMPILE_FIXES=1 \ + | grep -F '/*$*/' \ + | sed -e 's! /\*\$\*/!!' \ + -e 's!^@!#!' \ + -e 's!#define 1 1!#define NON_LAYOUT_COMPILE_FIXES 1!' + |