pkgsrc/mk/wrapper/NOTES
rillig b11d1504d0 Replaced jlam's initial sketch with one in which the parts are arranged
in a much simpler way, which hopefully makes the wrapper framework less
frightening to the pkgsrc developers. Added some additional notes.
2006-02-02 23:08:31 +00:00

39 lines
860 B
Text

$NetBSD: NOTES,v 1.3 2006/02/02 23:08:31 rillig Exp $
The wrapper scripts work roughly like the block diagram below.
===> {"$@"} <---> [scan]
|
v
[arg-source]
|
v
{argbuf}
| / [arg-pp-main]
v | [arg-pp]
[logic] <---------> <| [cache]
| | [transform.sed]
v \ [transform]
{cmdbuf}
|
v
[cmd-sink] <---.
| |
v |
[buildcmd] ----'
| |
v v
{cmd} {libs}
| |
| v
| [reorderlibs]
| |
| /
\ /
v v
<=== {cmd}
Additional notes:
* The <---> between the "$@" and the [scan] is indentional. The [scan]
program may indeed modify "$@" by using the "set --" shell command.