Fix typo converting request_debug_draw to return a HID_DRAW structure
[geda-pcb/pcjc2.git] / lib / gen_geda_m4.awk
blobccbf4d891d36d7da54e78d180ca7c58333647cc3
1 #!/usr/bin/awk -f
3 # Script to regenerate geda.m4 from geda.inc
5 # Usage:
7 # awk -f gen_geda_m4.awk geda.inc > geda.m4
10 BEGIN {
11 printf("divert(-1)\n");
12 printf("#\n");
13 printf("# NOTE: Auto-generated. Do not change.\n");
14 printf("#");
17 /^\#\#/ {
18 descr = $0;
19 ind = index(descr, $2);
20 descr = substr(descr, ind);
21 printf("#\n");
22 next;
26 /^[ \t]*define/ {
27 pkg = $1;
28 ind = index(pkg, "PKG");
29 pkg = substr(pkg, ind+4);
30 ind = index(pkg, "'");
31 pkg = substr(pkg, 1, ind-1);
32 printf("define(`Description_geda_%s',\t``%s'')\n", pkg, descr);
35 END {
36 printf("divert(0)dnl\n");