sdef, xml2man: add page (#7927)

feature/russian-awk-update
pixel 2022-03-27 23:49:38 +02:00 committed by GitHub
parent 9ac1ffd5ca
commit 0bc72f5496
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 0 deletions

8
pages/osx/sdef.md Normal file
View File

@ -0,0 +1,8 @@
# sdef
> Get or generate a scripting definitions (`sdef`) file from a scriptable application.
> More information: <https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/ScriptableCocoaApplications/SApps_creating_sdef/SAppsCreateSdef.html>.
- Print the scripting definitions of the given application:
`sdef {{/Applications/XCode.app}}`

16
pages/osx/xml2man.md Normal file
View File

@ -0,0 +1,16 @@
# 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.mxml}}`
- Compile an MPGL file to a specific output file:
`xml2man {{path/to/service.mxml}} {{path/to/service.7}}`
- Compile an MPGL file to a specific output file, overwriting if it already exists:
`xml2man -f {{path/to/function.mxml}} {{path/to/function.3}}`