Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
SDK
KDE Development Scripts
Commits
1844d4a4
Commit
1844d4a4
authored
Sep 28, 2022
by
Laurent Montel
Browse files
Improve clean-includes script
parent
659e6cc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
kf5/clean-includes.sh
View file @
1844d4a4
...
...
@@ -76,6 +76,20 @@ test_include() {
echo
"first car :
$firstCar
"
;
if
test
"
$firstCar
"
=
"Q"
||
test
"
$firstCar
"
=
"K"
;
then
case
$newname
in
QQmlContext
)
number
=
$(
grep
-c
"rootContext()"
"
$file
"
)
;
echo
"rootContext()
$number
"
;
if
test
"
$number
"
=
0
;
then
remove_include
;
fi
;;
QtQuickTest
)
number
=
$(
grep
-c
"QUICK_TEST_MAIN"
"
$file
"
)
;
echo
"QUICK_TEST_MAIN
$number
"
;
if
test
"
$number
"
=
0
;
then
remove_include
;
fi
;;
QtConcurrentRun
)
number
=
$(
grep
-c
"QtConcurrent::run"
"
$file
"
)
;
echo
"QtConcurrentRun
$number
"
;
...
...
@@ -100,7 +114,7 @@ test_include() {
fi
;;
QScopeGuard
)
number
=
$(
grep
-c
"qScopeGuard
()
"
"
$file
"
)
;
number
=
$(
grep
-c
"qScopeGuard"
"
$file
"
)
;
echo
"QScopeGuard
$number
"
;
if
test
"
$number
"
=
0
;
then
remove_include
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment