5 # Script to regenerate geda.m4 from geda.inc
9 # awk -f gen_geda_m4.awk geda.inc > geda.m4
13 printf("divert(-1)\n");
15 printf("# NOTE: Auto-generated. Do not change.\n");
21 ind =
index(descr
, $
2);
22 descr =
substr(descr
, ind
);
30 ind =
index(pkg
, "PKG");
31 pkg =
substr(pkg
, ind
+4);
32 ind =
index(pkg
, "'");
33 pkg =
substr(pkg
, 1, ind
-1);
34 printf("define(`Description_geda_%s',\t``%s'')\n", pkg
, descr
);
38 printf("divert(0)dnl\n");