From 73a5e3e96b43d2ba4e8aa775d5ccad60b5f6e82b Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Mon, 4 Feb 2013 17:53:19 +0100 Subject: make sure that new files are treated with lconvert as well Change-Id: I035f3fc4efabf4812b9f428f4ea26fe28d7a791c Reviewed-by: Joerg Bornemann --- translations/translations.pro | 2 ++ 1 file changed, 2 insertions(+) diff --git a/translations/translations.pro b/translations/translations.pro index c7b0512..8cd585e 100644 --- a/translations/translations.pro +++ b/translations/translations.pro @@ -67,6 +67,7 @@ check-ts.depends = ts-all isEqual(QMAKE_DIR_SEP, /) { commit-ts.commands = \ cd $$PWD/..; \ + git add -N translations/*_??.ts && \ for f in `git diff-files --name-only translations/*_??.ts`; do \ $$LCONVERT -locations none -i \$\$f -o \$\$f; \ done; \ @@ -75,6 +76,7 @@ isEqual(QMAKE_DIR_SEP, /) { wd = $$replace(PWD, /, \\)\\.. commit-ts.commands = \ cd $$wd && \ + git add -N translations/*_??.ts && \ for /f usebackq %%f in (`git diff-files --name-only translations/*_??.ts`) do \ $$LCONVERT -locations none -i %%f -o %%f $$escape_expand(\\n\\t) \ cd $$wd && git add translations/*_??.ts && git commit -- cgit v1.2.1