In order to make a first step I wrote an octave function that pretty much does the above mentioned tasks, plus add an @anchor for each item so that we can do cross referencing.
Now the questions are:
* Do people think that this automation process is really worth,
* Is it acceptable to do this with octave? If so, are there examples of .txi files generated by octave scripts somewhere in the doc (I am interested in Makefile.in rules examples)?
Pantxo