aboutsummaryrefslogtreecommitdiff
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
parent4d6457205a3c86856cac44889c7b5ee5a29e111b (diff)
downloadscummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.tar.gz
scummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.tar.bz2
scummvm-rg350-c9f2091bc96a0c83d9959d358214ff318fec8564.zip
RISCOS: Convert documentation to RISCOS-LATIN1 when packaging
-rw-r--r--Makefile.common10
-rw-r--r--backends/platform/sdl/riscos/riscos.mk10
2 files changed, 18 insertions, 2 deletions
diff --git a/Makefile.common b/Makefile.common
index b296446857..fa377a000e 100644
--- a/Makefile.common
+++ b/Makefile.common
@@ -242,6 +242,16 @@ dist-src: \
# Common files
DIST_FILES_DOCS:=$(addprefix $(srcdir)/,AUTHORS COPYING COPYING.BSD COPYING.LGPL COPYING.FREEFONT COPYRIGHT NEWS README)
+DIST_FILES_DOCS_languages=cz da de es fr it no-nb se
+DIST_FILES_DOCS_cz:=$(addprefix $(srcdir)/doc/cz/,PrectiMe)
+DIST_FILES_DOCS_da:=$(addprefix $(srcdir)/doc/da/,HurtigStart)
+DIST_FILES_DOCS_de:=$(addprefix $(srcdir)/doc/de/,LIESMICH NEUES Schnellstart)
+DIST_FILES_DOCS_es:=$(addprefix $(srcdir)/doc/es/,InicioRapido)
+DIST_FILES_DOCS_fr:=$(addprefix $(srcdir)/doc/fr/,DemarrageRapide)
+DIST_FILES_DOCS_it:=$(addprefix $(srcdir)/doc/it/,GuidaRapida)
+DIST_FILES_DOCS_no-nb:=$(addprefix $(srcdir)/doc/no-nb/,HurtigStart)
+DIST_FILES_DOCS_se:=$(addprefix $(srcdir)/doc/se/,LasMig Snabbstart)
+
# Themes files
DIST_FILES_THEMES=scummmodern.zip scummclassic.zip
ifdef USE_TRANSLATION
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;))