summaryrefslogtreecommitdiff
path: root/toolkit/workben/layout/un-test.sh
blob: ef2518ffa1b85754afe580f8b0d3d0904eda6209 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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!'