On Mon, Oct 22, 2012 at 09:15:35PM -0400, John Eckersberg wrote:
Thanks for posting this. After skimming this I decided I needed a
crash
course on OCaml, so I spent the majority of today doing just that. I
think I've wrapped my head around it well enough (past elisp experience
helped!) and I'll be looking at this with a slightly more educated eye
in the morning.
With experience of lisp and something like haskell or SML you
should be good.
Here's a useful trick you can use when playing with the generator:
The generator writes a list of all the files it generates to
'generator/files-generated.txt'. So start with some upstream version
of libguestfs, build it, and take a backup of the generated files:
for f in `cat generator/files-generated.txt`; do cp $f $f.orig; done
Then apply a patch such as this one, or do your own development. Now
you can compare what has changed in the generated files by doing:
for f in `cat generator/files-generated.txt`; do diff -ur $f.orig $f; done |
less
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
New in Fedora 11: Fedora Windows cross-compiler. Compile Windows
programs, test, and build Windows installers. Over 70 libraries supprt'd
http://fedoraproject.org/wiki/MinGW http://www.annexia.org/fedora_mingw