merged tag ooo/DEV300_m102
[LibreOffice.git] / toolkit / workben / layout / un-test.sh
blobef2518ffa1b85754afe580f8b0d3d0904eda6209
1 #! /bin/sh
3 # un-test.sh: remove TEST_LAYOUT code from OO.o implementation
5 sed -e 's!^#!@!' < $1\
6 -e 's!$! /*$*/!' \
7 -e 's!^@\(.*TEST_LAYOUT\)!#\1!'\
8 | tee i \
9 | cpp -traditional -C -CC -DNON_LAYOUT_COMPILE_FIXES=1 \
10 | grep -F '/*$*/' \
11 | sed -e 's! /\*\$\*/!!' \
12 -e 's!^@!#!' \
13 -e 's!#define 1 1!#define NON_LAYOUT_COMPILE_FIXES 1!'