HiveBrain v1.2.0
Get Started
← Back to all entries
snippetbashTip

xml2man — Compile MPGL to mdoc. More information: <https://developer.apple.com/library/archive/documentation/D

Submitted by: @import:tldr-pages··
0
Viewed 0 times
mpglcommandmdoccompilecliinformationmorexml2man
macos

Problem

How to use the xml2man command: Compile MPGL to mdoc. More information: <https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/HeaderDoc/mpgl/mpgl.html>.

Solution

xml2man — Compile MPGL to mdoc. More information: <https://developer.apple.com/library/archive/documentation/DeveloperTools/Conceptual/HeaderDoc/mpgl/mpgl.html>.

Compile an MPGL file to a viewable man page:
xml2man {{path/to/command_file.mxml}}


Compile an MPGL file to a specific output file:
xml2man {{path/to/service_file.mxml}} {{path/to/service_file.7}}


Compile an MPGL file to a specific output file, overwriting if it already exists:
xml2man -f {{path/to/function_file.mxml}} {{path/to/function_file.3}}

Code Snippets

Compile an MPGL file to a viewable man page

xml2man {{path/to/command_file.mxml}}

Compile an MPGL file to a specific output file

xml2man {{path/to/service_file.mxml}} {{path/to/service_file.7}}

Compile an MPGL file to a specific output file, overwriting if it already exists

xml2man -f {{path/to/function_file.mxml}} {{path/to/function_file.3}}

Context

tldr-pages: osx/xml2man

Revisions (0)

No revisions yet.