Line 0
Link Here
|
|
|
1 |
From 082321a1a513b5fb694ca60e368eddd57b58f433 Mon Sep 17 00:00:00 2001 |
2 |
From: Palo Kisa <palo.kisa@gmail.com> |
3 |
Date: Fri, 12 Feb 2016 08:11:41 +0100 |
4 |
Subject: [PATCH] TranslateDesktop: Use -a switch in grep commands |
5 |
|
6 |
As of grep v2.23 some translation files are considered as binary (maybe because of some locale settings) |
7 |
and then the created .desktop file is malformed. So we force the grep to handle all provided input |
8 |
files as text. |
9 |
|
10 |
closes lxde/lxqt#957 |
11 |
--- |
12 |
cmake/modules/LXQtTranslateDesktop.cmake | 6 +++--- |
13 |
1 file changed, 3 insertions(+), 3 deletions(-) |
14 |
|
15 |
diff --git a/cmake/modules/LXQtTranslateDesktop.cmake b/cmake/modules/LXQtTranslateDesktop.cmake |
16 |
index e770b63..217400a 100644 |
17 |
--- a/cmake/modules/LXQtTranslateDesktop.cmake |
18 |
+++ b/cmake/modules/LXQtTranslateDesktop.cmake |
19 |
@@ -71,13 +71,13 @@ function(lxqt_translate_desktop _RESULT) |
20 |
if (_translations) |
21 |
list(SORT _translations) |
22 |
add_custom_command(OUTPUT ${_outFile} |
23 |
- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} |
24 |
- COMMAND grep -h ${_pattern} ${_translations} >> ${_outFile} |
25 |
+ COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} |
26 |
+ COMMAND grep -h -a ${_pattern} ${_translations} >> ${_outFile} |
27 |
COMMENT "Generating ${_fileName}${_fileExt}" |
28 |
) |
29 |
else() |
30 |
add_custom_command(OUTPUT ${_outFile} |
31 |
- COMMAND grep -v "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} |
32 |
+ COMMAND grep -v -a "'#TRANSLATIONS_DIR='" ${_inFile} > ${_outFile} |
33 |
COMMENT "Generating ${_fileName}${_fileExt}" |
34 |
) |
35 |
endif() |