aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-26 10:44:45 +0100
committerThorbjørn Lindeijer <thorbjorn.lindeijer@nokia.com>2009-02-26 10:44:45 +0100
commitad29fba37811bd03a85221ffde32dc5637867f71 (patch)
tree72cf8e71d23d553a35ae51c302e4ad835901a665
parenta497e6693ee8e380bfe0aa374684ca1aee08413d (diff)
Added some addition output to qpatch
Done with Roberto
-rw-r--r--src/tools/qpatch/qpatch.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/tools/qpatch/qpatch.cpp b/src/tools/qpatch/qpatch.cpp
index 972b1cda9d..1c1c0b8b17 100644
--- a/src/tools/qpatch/qpatch.cpp
+++ b/src/tools/qpatch/qpatch.cpp
@@ -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);
}