summaryrefslogtreecommitdiff
path: root/solenv/bin/update_pch.sh
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/update_pch.sh')
-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