Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Marco Bubke
flatpak-qt-creator
Commits
ad29fba3
Commit
ad29fba3
authored
Feb 26, 2009
by
Thorbjørn Lindeijer
Browse files
Added some addition output to qpatch
Done with Roberto
parent
a497e669
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/tools/qpatch/qpatch.cpp
View file @
ad29fba3
...
...
@@ -77,6 +77,7 @@ int main(int argc, char *argv[])
std
::
cerr
<<
"qpatch: error: file `"
<<
qPrintable
(
fileName
)
<<
"' not writable"
<<
std
::
endl
;
continue
;
}
std
::
cout
<<
"patching file `"
<<
qPrintable
(
fileName
)
<<
"'"
<<
std
::
endl
;
forever
{
int
start
=
source
.
indexOf
(
qtDirPath
,
index
);
...
...
@@ -121,6 +122,10 @@ int main(int argc, char *argv[])
index
=
endOfString
;
}
if
(
index
==
0
)
{
std
::
cerr
<<
"qpatch: warning: file `"
<<
qPrintable
(
fileName
)
<<
"' didn't contain string to patch"
<<
std
::
endl
;
}
if
(
index
!=
source
.
size
())
file
.
write
(
source
.
constData
()
+
index
,
source
.
size
()
-
index
);
}
...
...
@@ -147,6 +152,8 @@ int main(int argc, char *argv[])
continue
;
}
std
::
cout
<<
"patching text file `"
<<
qPrintable
(
fileName
)
<<
"'"
<<
std
::
endl
;
source
.
replace
(
qtDirPath
,
newQtPath
);
file
.
write
(
source
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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