From ab5ecdb6552765389eab34f6dba1d780e7456543 Mon Sep 17 00:00:00 2001 From: Alain Reguera Delgado Date: Nov 07 2013 20:11:12 +0000 Subject: Update asciidoc processing from locale module. - Previously, a plain/text mime verification was applied against incoming files. This worked well for articles and manpages documents written in asciidoc format but it failed for manpage documents written in asciidoc format which first line is prepare(1). In this last case, even the incoming file is visibly a plain/text file, the command file interprets it as an image/x-3ds file which made plain/text mime verification to fail. This update changes the verification from mime to match, using the incoming file extension as reference, in order for manpage documents with prepare(1) as first line to succeed localization update. --- diff --git a/Automation/Modules/Locale/Modules/Files/Modules/Update/Modules/Asciidoc/asciidoc.sh b/Automation/Modules/Locale/Modules/Files/Modules/Update/Modules/Asciidoc/asciidoc.sh index 3c72546..21233c1 100755 --- a/Automation/Modules/Locale/Modules/Files/Modules/Update/Modules/Asciidoc/asciidoc.sh +++ b/Automation/Modules/Locale/Modules/Files/Modules/Update/Modules/Asciidoc/asciidoc.sh @@ -27,7 +27,7 @@ function asciidoc { - tcar_checkFiles -efi "text/plain" "${RENDER_FROM}" + tcar_checkFiles -efm "\.asciidoc$" "${RENDER_FROM}" local DOCBOOK=$(tcar_getTemporalFile $(basename ${RENDER_FROM})).docbook