Searches BOARD_INFO files, in the current directory, for hook commands matching a hook name, and minimally pre-parses those commands before writing them to stdout.
This is part of the dno Arduino software builder package.
According to the Arduino platform specification the following pre and post build hooks exist:
sketch.prebuild;
sketch.postbuild;
libraries.prebuild;
libraries.postbuild;
core.prebuild;
core.postbuild;
linking.prelink;
linking.postlink;
objcopy.preobjcopy;
objcopy.postobjcopy;
savehex.presavehex;
savehex.postsavehex.
Each command hook line is of the form:
recipe.hooks.NAME.NUMBER.pattern=COMMAND
The commands returned by dno_commands_for are returned in their numerical order. Note that this is different from the Arduino IDE in which NUMBER is sorted as an alphabetic field.
Since it was easier (and less offensive to the author’s sense of what is right) to sort “properly”, dno_commands_for sorts the commands returned numerically rather than alphabetically.
dno_commands_for is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 3 of the License.
dno_commands_for is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with dno. If not, see https://www.gnu.org/licenses/.