summaryrefslogtreecommitdiffstats
path: root/tests/auto/bic/gen.sh
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-19 13:33:56 +0200
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-19 14:47:25 +0200
commit3a27a5d0efc98f122652972ea2f5976f41f554ce (patch)
tree03cf77ca41e1637796516fff8880869a8c0540be /tests/auto/bic/gen.sh
parent02532ec80375c686503c4250c6ad6bb211515ec8 (diff)
[tst_bic] Fix gen.sh not to generate sequential empty lines
Diffstat (limited to 'tests/auto/bic/gen.sh')
-rwxr-xr-xtests/auto/bic/gen.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/auto/bic/gen.sh b/tests/auto/bic/gen.sh
index 4290f9dd40..8005880317 100755
--- a/tests/auto/bic/gen.sh
+++ b/tests/auto/bic/gen.sh
@@ -59,8 +59,10 @@ for module in $modules; do
g++ -c -I$QTDIR/include -DQT_NO_STL -DQT3_SUPPORT -fdump-class-hierarchy test.cpp
mv test.cpp*.class $module.$2.txt
# Remove template classes from the output
- perl -pi -e '$skip = 0 if (/^\n/);
- $skip = 1 if (/^(Class|Vtable).*</);
- $_ = "" if ($skip);' $module.$2.txt
+ perl -pi -e '$skip = 1 if (/^(Class|Vtable).*</);
+ if ($skip) {
+ $skip = 0 if (/^$/);
+ $_ = "";
+ }' $module.$2.txt
done