diff options
author | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-02-25 18:00:09 (GMT) |
---|---|---|
committer | Denis Dzyubenko <denis.dzyubenko@nokia.com> | 2011-02-25 18:00:09 (GMT) |
commit | bdc74c482973c4658e6ac9d6889411bf0c791432 (patch) | |
tree | 62f5c645d93b571e6e6bbf654d16617f9fc7e87b /util | |
parent | 0c2ec3cef9f0a91b08d5103ac0bafd173f2a20df (diff) | |
download | Qt-bdc74c482973c4658e6ac9d6889411bf0c791432.zip Qt-bdc74c482973c4658e6ac9d6889411bf0c791432.tar.gz Qt-bdc74c482973c4658e6ac9d6889411bf0c791432.tar.bz2 |
Fixed the generator script for qlocale after splitting the sources.
Reviewed-by: trustme
Diffstat (limited to 'util')
-rwxr-xr-x | util/local_database/qlocalexml2cpp.py | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/util/local_database/qlocalexml2cpp.py b/util/local_database/qlocalexml2cpp.py index 86adf90..ee66ba9 100755 --- a/util/local_database/qlocalexml2cpp.py +++ b/util/local_database/qlocalexml2cpp.py @@ -381,7 +381,7 @@ def main(): usage() if not os.path.isfile(qtsrcdir + "/src/corelib/tools/qlocale.h"): usage() - if not os.path.isfile(qtsrcdir + "/src/corelib/tools/qlocale.cpp"): + if not os.path.isfile(qtsrcdir + "/src/corelib/tools/qlocale.qdoc"): usage() (data_temp_file, data_temp_file_path) = tempfile.mkstemp("qlocale_data_p") @@ -715,23 +715,23 @@ def main(): os.rename(qlocaleh_temp_file_path, qtsrcdir + "/src/corelib/tools/qlocale.h") - # qlocale.cpp + # qlocale.qdoc - (qlocalecpp_temp_file, qlocalecpp_temp_file_path) = tempfile.mkstemp("qlocale.cpp") - qlocalecpp_temp_file = os.fdopen(qlocalecpp_temp_file, "w") - qlocalecpp_file = open(qtsrcdir + "/src/corelib/tools/qlocale.cpp", "r") - s = qlocalecpp_file.readline() + (qlocaleqdoc_temp_file, qlocaleqdoc_temp_file_path) = tempfile.mkstemp("qlocale.qdoc") + qlocaleqdoc_temp_file = os.fdopen(qlocaleqdoc_temp_file, "w") + qlocaleqdoc_file = open(qtsrcdir + "/src/corelib/tools/qlocale.qdoc", "r") + s = qlocaleqdoc_file.readline() DOCSTRING=" QLocale's data is based on Common Locale Data Repository " while s: if DOCSTRING in s: - qlocalecpp_temp_file.write(DOCSTRING + "v" + cldr_version + ".\n") + qlocaleqdoc_temp_file.write(DOCSTRING + "v" + cldr_version + ".\n") else: - qlocalecpp_temp_file.write(s) - s = qlocalecpp_file.readline() - qlocalecpp_temp_file.close() - qlocalecpp_file.close() + qlocaleqdoc_temp_file.write(s) + s = qlocaleqdoc_file.readline() + qlocaleqdoc_temp_file.close() + qlocaleqdoc_file.close() - os.rename(qlocalecpp_temp_file_path, qtsrcdir + "/src/corelib/tools/qlocale.cpp") + os.rename(qlocaleqdoc_temp_file_path, qtsrcdir + "/src/corelib/tools/qlocale.qdoc") if __name__ == "__main__": main() |