summaryrefslogtreecommitdiff
path: root/solenv/bin
diff options
context:
space:
mode:
authorLuboš Luňák <l.lunak@suse.cz>2012-12-18 16:53:31 +0100
committerLuboš Luňák <l.lunak@suse.cz>2012-12-18 16:56:33 +0100
commit626969aa7cce72692767e265a2a98ef111202487 (patch)
tree85dfaadd0deb1be301f89100df824639aaf4a4ea /solenv/bin
parent17e0f42234c67df60e5599289fdb2cda683bea6e (diff)
fix conditionals detection
Change-Id: I50b335375b8b2ac67c50f887a4eb58456b9cea33
Diffstat (limited to 'solenv/bin')
-rwxr-xr-xsolenv/bin/update_pch.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/solenv/bin/update_pch.sh b/solenv/bin/update_pch.sh
index 0cda8f494801..1302df4faf38 100755
--- a/solenv/bin/update_pch.sh
+++ b/solenv/bin/update_pch.sh
@@ -30,7 +30,7 @@ for x in $headers; do
inobjects=
ifstack=0
while read line ; do
- if (test "$line" = "))") || (echo $line | grep -q ", "); then
+ if test "$line" = "))" ; then
inobjects=
elif echo $line | grep -q -e add_exception_objects -e add_noexception_objects -e add_cxxobject -e add_cxxobjects ; then
inobjects=1
@@ -43,7 +43,9 @@ for x in $headers; do
ifstack=$((ifstack - 1))
elif test -n "$inobjects" -a $ifstack -eq 0; then
file=$line
- if ! test -f "$root/$file".cxx ; then
+ if echo $line | grep -q ", "; then
+ true # $if() probably, or something similar
+ elif ! test -f "$root/$file".cxx ; then
echo No file $file in $module/$makefile >&2
else
cat "$root/$file".cxx | grep -e '^\s*#include' | sed 's/\(#include [<"][^>"]*[>"]\).*/\1/' | sed 's#\.\./##g#' >>$tmpfile