File: force-grep-as-text.patch

package info (click to toggle)
openttd-openmsx 0.3.1-5
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 984 kB
  • sloc: python: 124; makefile: 75
file content (20 lines) | stat: -rw-r--r-- 970 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Origin: upstream, https://dev.openttdcoop.org/projects/openmsx/repository/revisions/1e6d9a0c79ba
Description: Force grep to treat translations as text
 In some environments (in particular the reproducible-builds chroots),
 grep detects the docs/descriptions.ptxt file as binary, probably
 because it contains some non-Western characters. This patch tells grep
 to treat these as text, so the descriptions can be extracted from that
 file as expected.
 .
 This patch is similar (but not quite identical) to an upstream commit.
--- a/scripts/Makefile.in
+++ b/scripts/Makefile.in
@@ -16,7 +16,7 @@ $(MAIN_TARGET): $(MAIN_FILENAME_SRC) $(M
 	@echo "shortname   = $(REPO_SHORTNAME)" >> $@
 	@echo "version     = $(REPO_REVISION)" >> $@
 
-	$(_V) cat $(DESC_FILENAME_SRC) | grep -E '^description' | sed 's/$$/ [$(REPO_TITLE)]/' >> $@
+	$(_V) cat $(DESC_FILENAME_SRC) | grep -a -E '^description' | sed 's/$$/ [$(REPO_TITLE)]/' >> $@
 
 	@echo "" >> $@
 	@echo "[files]" >> $@