summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2010-04-19 11:33:56 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2010-04-19 12:47:25 (GMT)
commit3a27a5d0efc98f122652972ea2f5976f41f554ce (patch)
tree03cf77ca41e1637796516fff8880869a8c0540be
parent02532ec80375c686503c4250c6ad6bb211515ec8 (diff)
downloadQt-3a27a5d0efc98f122652972ea2f5976f41f554ce.zip
Qt-3a27a5d0efc98f122652972ea2f5976f41f554ce.tar.gz
Qt-3a27a5d0efc98f122652972ea2f5976f41f554ce.tar.bz2
[tst_bic] Fix gen.sh not to generate sequential empty lines
-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 4290f9d..8005880 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