forked from qt-creator/qt-creator
make sure that new files are treated with lconvert as well
Change-Id: I9d0946e665f74571f6fed1c467311f3658cce01e Reviewed-by: Joerg Bornemann <joerg.bornemann@digia.com>
This commit is contained in:
@@ -70,6 +70,7 @@ QMAKE_EXTRA_TARGETS += check-ts
|
|||||||
isEqual(QMAKE_DIR_SEP, /) {
|
isEqual(QMAKE_DIR_SEP, /) {
|
||||||
commit-ts.commands = \
|
commit-ts.commands = \
|
||||||
cd $$wd; \
|
cd $$wd; \
|
||||||
|
git add -N share/qtcreator/translations/*_??.ts && \
|
||||||
for f in `git diff-files --name-only share/qtcreator/translations/*_??.ts`; do \
|
for f in `git diff-files --name-only share/qtcreator/translations/*_??.ts`; do \
|
||||||
$$LCONVERT -locations none -i \$\$f -o \$\$f; \
|
$$LCONVERT -locations none -i \$\$f -o \$\$f; \
|
||||||
done; \
|
done; \
|
||||||
@@ -77,6 +78,7 @@ isEqual(QMAKE_DIR_SEP, /) {
|
|||||||
} else {
|
} else {
|
||||||
commit-ts.commands = \
|
commit-ts.commands = \
|
||||||
cd $$wd && \
|
cd $$wd && \
|
||||||
|
git add -N share/qtcreator/translations/*_??.ts && \
|
||||||
for /f usebackq %%f in (`git diff-files --name-only share/qtcreator/translations/*_??.ts`) do \
|
for /f usebackq %%f in (`git diff-files --name-only share/qtcreator/translations/*_??.ts`) do \
|
||||||
$$LCONVERT -locations none -i %%f -o %%f $$escape_expand(\\n\\t) \
|
$$LCONVERT -locations none -i %%f -o %%f $$escape_expand(\\n\\t) \
|
||||||
cd $$wd && git add share/qtcreator/translations/*_??.ts && git commit
|
cd $$wd && git add share/qtcreator/translations/*_??.ts && git commit
|
||||||
|
Reference in New Issue
Block a user