MAKEPPBUILTIN(1) | Makepp | MAKEPPBUILTIN(1) |
makeppbuiltin -- Stand-alone access to builtin commands in makepp
?: -?, A: -A,
--args-file,
--arguments-file, D: $DIRECTNAMEFLAGS,
H: -h,
--help, I: -I,
--include,
--include-dir, M: -M,
$MAKEPPBUILTINFLAGS,
--module, V: -V,
--version
makeppbuiltin [ metaoption ... ] command -?|--help
mppb [ metaoption ... ] command -?|--help
makeppbuiltin [ metaoption ... ] command [ option ... ] [ argument ... ]
mppb [ metaoption ... ] command [ option ... ] [ argument ... ]
or
ln makeppbuiltin command
command -?|--help
command [ option ... ] [ argument ... ]
This command allows you to call the builtin commands makepp provides, from outside makepp as well. This could be necessary if you've installed things with Makeppfile targets that use &install, but there is no corresponding &uninstall target. Or you need a feature not usually found in the Unix counterparts like "ln -r". That's what this command is for.
The commands get a simple additional "--help" option, which their builtin counterparts lack. This works by parsing the command's option declaration. It cannot however find out, what other arguments the command expects.
The metaoptions allow loading your own command or helper functions, but only if it comes from a module. Valid options are:
If you like to call such a command more frequently, you can call it directly, by linking "makeppbuiltin" to the name of that command. The name of the builtin can occur anywhere within the file-name without directory. So any of the following links would invoke the builtin "template" command (but the last would need to be escaped from the Shell):
There are a few notable differences between the usual call within a Makeppfile rule, and a stand-alone call:
Difference: To start the command stand-alone you are probably using a Shell. Here you must adapt such special cases to the syntactical requirements of the Shell.
Difference: When called from the Shell, you will instead get unprotected Shell variables and expressions expanded, before the comand is called.
Difference: In stand-alone usage there is no such context. Everything you need, must be in the Perl code you pass the command, or in modules you use.
Makeppbuiltin looks at the following environment variables:
Daniel Pfeiffer (occitan@esperanto.org)
2021-01-06 | perl v5.32.0 |