diff options
author | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-11-18 19:33:40 +0100 |
---|---|---|
committer | Oswald Buddenhagen <oswald.buddenhagen@nokia.com> | 2010-11-18 20:47:24 +0100 |
commit | 8959874793ee6d5a62b348b2de45b9ca4fce494d (patch) | |
tree | 7ec6815df8660dd0031e2dd6b23aebab5abf48db | |
parent | 0e27bad04c675210d74027b5cb4b46edbc26fe82 (diff) |
fix ts targets under windows
-rw-r--r-- | share/qtcreator/translations/translations.pro | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/share/qtcreator/translations/translations.pro b/share/qtcreator/translations/translations.pro index 49ef9fdf087..04092179799 100644 --- a/share/qtcreator/translations/translations.pro +++ b/share/qtcreator/translations/translations.pro @@ -13,6 +13,8 @@ LUPDATE = $$targetPath($$[QT_INSTALL_BINS]/lupdate) -locations relative -no-ui-l LRELEASE = $$targetPath($$[QT_INSTALL_BINS]/lrelease) LCONVERT = $$targetPath($$[QT_INSTALL_BINS]/lconvert) +wd = $$replace(IDE_SOURCE_TREE, /, $$QMAKE_DIR_SEP) + TRANSLATIONS = $$prependAll(LANGUAGES, $$PWD/qtcreator_,.ts) MIME_TR_H = $$OUT_PWD/mime_tr.h @@ -30,7 +32,8 @@ extract.commands += \ QMAKE_EXTRA_TARGETS += extract plugin_sources = $$files($$IDE_SOURCE_TREE/src/plugins/*) -plugin_sources ~= s,^$$re_escape($$IDE_SOURCE_TREE/),,g +win32:plugin_sources ~= s,\\\\,/,g +plugin_sources ~= s,^$$re_escape($$IDE_SOURCE_TREE/),,g$$i_flag plugin_sources -= src/plugins/plugins.pro \ src/plugins/helloworld \ # just an example # the following ones are dead @@ -43,28 +46,27 @@ files = $$files($$PWD/*_??.ts) $$PWD/qtcreator_untranslated.ts for(file, files) { lang = $$replace(file, .*_([^/]*)\\.ts, \\1) v = ts-$${lang}.commands - $$v = cd $$IDE_SOURCE_TREE && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$file + $$v = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$file v = ts-$${lang}.depends $$v = extract QMAKE_EXTRA_TARGETS += ts-$$lang } -ts-all.commands = cd $$IDE_SOURCE_TREE && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$files +ts-all.commands = cd $$wd && $$LUPDATE $$sources $$MIME_TR_H $$CUSTOMWIZARD_TR_H -ts $$files ts-all.depends = extract QMAKE_EXTRA_TARGETS += ts-all -check-ts.commands = (cd $$PWD && perl check-ts.pl) +check-ts.commands = (cd $$replace(PWD, /, $$QMAKE_DIR_SEP) && perl check-ts.pl) check-ts.depends = ts-all QMAKE_EXTRA_TARGETS += check-ts isEqual(QMAKE_DIR_SEP, /) { commit-ts.commands = \ - cd $$IDE_SOURCE_TREE; \ + cd $$wd; \ for f in `git diff-files --name-only share/qtcreator/translations/*_??.ts`; do \ $$LCONVERT -locations none -i \$\$f -o \$\$f; \ done; \ git add share/qtcreator/translations/*_??.ts && git commit } else { - wd = $$replace(IDE_SOURCE_TREE, /, \\) commit-ts.commands = \ cd $$wd && \ for /f usebackq %%f in (`git diff-files --name-only share/qtcreator/translations/*_??.ts`) do \ |