xref: /trunk/main/toolkit/workben/layout/un-test.sh (revision cdf0e10c)
1*cdf0e10cSrcweir#! /bin/sh
2*cdf0e10cSrcweir
3*cdf0e10cSrcweir# un-test.sh: remove TEST_LAYOUT code from OO.o implementation
4*cdf0e10cSrcweir
5*cdf0e10cSrcweirsed -e 's!^#!@!' < $1\
6*cdf0e10cSrcweir    -e 's!$! /*$*/!' \
7*cdf0e10cSrcweir    -e 's!^@\(.*TEST_LAYOUT\)!#\1!'\
8*cdf0e10cSrcweir    | tee i \
9*cdf0e10cSrcweir    | cpp -traditional -C -CC -DNON_LAYOUT_COMPILE_FIXES=1 \
10*cdf0e10cSrcweir    | grep -F '/*$*/' \
11*cdf0e10cSrcweir    | sed -e 's! /\*\$\*/!!' \
12*cdf0e10cSrcweir    -e 's!^@!#!' \
13*cdf0e10cSrcweir    -e 's!#define 1 1!#define NON_LAYOUT_COMPILE_FIXES 1!'
14*cdf0e10cSrcweir
15