Plugin source location: <serge_root>/lib/Serge/Engine/Plugin/run_command.pm
Plugin always attaches itself to the following callback phase: after_save_localized_file
.
This plugin allows one to run some shell command each time the localized file is saved, which allows one to post-process (compile, pack, validate) localized files.
This plugin inherits all the configuration logic from the parent 'if' plugin and, if all conditions are met, runs a shell command. Note that all if
conditions are optional: if none are provided, the shell command will always run. You can have multiple command
entries; all provided commands will run sequentially.
Shell command can include macros in command
parameter, which will be expanded to their actual values. See Configuration File Reference for the list of standard macros. In addition to standard macros, %OUTFILE%
will be substituted with the full output file path, and %OUTPATH%
will be substituted with the full directory path (sans the file name).
See also: 'if' plugin reference.