aboutsummaryrefslogtreecommitdiff
path: root/backends
diff options
context:
space:
mode:
authorCameron Cawley2018-06-15 22:48:31 +0100
committerAdrian Frühwirth2018-06-29 16:45:26 +0000
commitc9f2091bc96a0c83d9959d358214ff318fec8564 (patch)
tree1359f97a812910f41a824ed587ab4671fbde1f26 /backends
parent4d6457205a3c86856cac44889c7b5ee5a29e111b (diff)
downloadscummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.tar.gz
scummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.tar.bz2
scummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.zip
RISCOS: Convert documentation to RISCOS-LATIN1 when packaging
Diffstat (limited to 'backends')
-rw-r--r--backends/platform/sdl/riscos/riscos.mk10
1 files changed, 8 insertions, 2 deletions
diff --git a/backends/platform/sdl/riscos/riscos.mk b/backends/platform/sdl/riscos/riscos.mk
index af599586e5..297c409870 100644
--- a/backends/platform/sdl/riscos/riscos.mk
+++ b/backends/platform/sdl/riscos/riscos.mk
@@ -1,3 +1,9 @@
+ifeq ($(shell echo a | iconv --to-code=RISCOS-LATIN1//TRANSLIT >/dev/null 2>&1; echo $$?),0)
+ENCODING=RISCOS-LATIN1//TRANSLIT
+else
+ENCODING=ISO-8859-1//TRANSLIT
+endif
+
# Special target to create an RISC OS snapshot installation
riscosdist: scummvm$(EXEEXT)
mkdir -p !ScummVM
@@ -24,5 +30,5 @@ endif
ifdef TOKENIZE
$(TOKENIZE) dists/riscos/FindHelp,fd1 -out !ScummVM/FindHelp,ffb
endif
- cp $(DIST_FILES_DOCS) !ScummVM/docs
- cp -r ${srcdir}/doc/* !ScummVM/docs
+ @$(foreach file, $(DIST_FILES_DOCS) $(srcdir)/doc/QuickStart, echo ' ' ICONV ' ' !ScummVM/docs/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > !ScummVM/docs/$(notdir $(file)),fff;)
+ @$(foreach lang, $(DIST_FILES_DOCS_languages), mkdir -p !ScummVM/docs/$(lang); $(foreach file, $(DIST_FILES_DOCS_$(lang)), echo ' ' ICONV ' ' !ScummVM/docs/$(lang)/$(notdir $(file)),fff;iconv --to-code=$(ENCODING) $(file) > !ScummVM/docs/$(lang)/$(notdir $(file)),fff;))