3 # Script to regenerate geda.m4 from geda.inc
7 # awk -f gen_geda_m4.awk geda.inc > geda.m4
11 printf("divert(-1)\n");
13 printf("# NOTE: Auto-generated. Do not change.\n");
19 ind =
index(descr
, $
2);
20 descr =
substr(descr
, ind
);
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
);
36 printf("divert(0)dnl\n");