9 * A simple filter for the templates
12 int main(int argc, char *argv[])
25 if(chdir(getenv("TOPDIR")))
32 * Build the exec array ahead of time.
47 * Now process the template
50 while(fgets(buf, 1024, stdin))
60 strcpy(type, "-function");
62 strcpy(type, "-nofunction");
63 else if(buf[1]=='F') {
65 fvec[0] = "kernel-doc";
67 strcpy (type, "-function");
69 for (i = 2; buf[i]; i++) {
70 if (buf[i] == ' ' || buf[i] == '\n') {
87 fprintf(stderr, "Unknown ! escape.\n");
96 execvp("scripts/kernel-doc", svec);
97 perror("exec scripts/kernel-doc");
100 waitpid(pid, &ret ,0);