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
7dcfb6bf
Commit
7dcfb6bf
authored
Sep 26, 2022
by
Laurent Montel
Browse files
Improve script
parent
17634bd2
Pipeline
#236929
passed with stage
in 17 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
kf5/clean-includes.sh
View file @
7dcfb6bf
...
...
@@ -76,6 +76,21 @@ test_include() {
echo
"first car :
$firstCar
"
;
if
test
"
$firstCar
"
=
"Q"
||
test
"
$firstCar
"
=
"K"
;
then
case
$newname
in
QObject
)
number
=
$(
grep
-c
"QT_VERSION_CHECK"
"
$file
"
)
;
echo
"QObject
$number
"
;
if
test
"
$number
"
=
0
;
then
remove_include
;
fi
;;
KJobUiDelegate
)
number
=
$(
grep
-c
"uiDelegate()"
"
$file
"
)
;
echo
"KJobUiDelegate
$number
"
;
if
test
"
$number
"
=
0
;
then
remove_include
;
fi
;;
QtDBus
)
number
=
$(
grep
-c
QDBusInterface
"
$file
"
)
;
echo
"QDBusInterface
$number
"
;
...
...
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