Skip to content

Shell Scripts Produce Corrupt PDFs under Bash for Windows #66

@tajmone

Description

@tajmone

The .sh script to build the PDF docs via asciidoctor-fopub don't work as expected under Bash for Windows, for they seem unable to locate the default template images, thus creating a PDF with no admonitions icons:

SEVERE: Image not found. URI: D:/local/path/to/asciidoctor-fopub/build/fopub/docbook/images/note.svg. (No context info available)

whereas the image mentioned in the error is actually there, with the correct path and filename!

It must be something related to how paths are handled in Bash for Windows vs real *nix bash, and how these interact with FOP.

We need to:

  • Find a TEMPORARY FIX:
    • Make the .sh scripts for PDF build detect if running under Git for Windows' Bash (via MinGW env var) and abort execution if so.
  • Find a REAL SOLUTION to make the .sh scripts work.
    • Delete all .bat scripts and keep only Bash scripts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    📖 Alan ManualIssues relating to "The Alan Language Manual"📖 Beginner's GuideIssues relating to the "Alan 3 Beginner's Guide"🕑 WIPWork in progress (possibly with tasks list).👑 PDF FormatIssues with conversion to PDF format🔨 asciidoctor-fopubTool: asciidoctor-fopub (PDF toolchain)💀 bugSomething isn't working⭐ automationTopic: Project automation and/or repo CI⚠️ importantPriority: High

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions