Commit 90fdd983 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

make sure that new files are treated with lconvert as well



Change-Id: I9d0946e665f74571f6fed1c467311f3658cce01e
Reviewed-by: default avatarJoerg Bornemann <joerg.bornemann@digia.com>
parent 334be9ff
...@@ -70,6 +70,7 @@ QMAKE_EXTRA_TARGETS += check-ts ...@@ -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, /) { ...@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment