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]" >> $@
|