9 * A simple filter for the templates
12 int main(int argc
, char *argv
[])
24 if(chdir(getenv("TOPDIR")))
31 * Build the exec array ahead of time.
46 * Now process the template
49 while(fgets(buf
, 1024, stdin
))
59 strcpy(type
, "-function");
61 strcpy(type
, "-nofunction");
62 else if(buf
[1]=='F') {
64 fvec
[0] = "kernel-doc";
66 strcpy (type
, "-function");
68 for (i
= 2; buf
[i
]; i
++) {
69 if (buf
[i
] == ' ' || buf
[i
] == '\n') {
86 fprintf(stderr
, "Unknown ! escape.\n");
95 execvp("scripts/kernel-doc", svec
);
96 perror("exec scripts/kernel-doc");