GNOME Bugzilla – Bug 337843
Improve formatting of output from gimp-procedural-db-dump
Last modified: 2006-04-11 15:12:54 UTC
I have been working on scripts that test the PDB calls in GIMP. To make the scripts I use use Script-Fu console to dump the entire PDB information to a file using gimp-procedural-db-dump. Due to the way the output file is formatted it is not easy to go through it and extract the information I needed. It required a lot of manual work. With some improvements to the formatting of the output it would be easier to write a script to automatically extract information from the PDB dump.
Created attachment 63047 [details] [review] Patch to clean up output from gimp-procedural-db-dump The attached patch greatly improves the output from gimp-procedural-db-dump and makes it substantially easier to parse via scripts to extract any information one might want. It allowed me to write a perl script to extract the data very easily and cleanly compared to the original format of the PDB dump.
You could've used Parse:RecDescent in perl. ;) The patch is fine, go ahead and commit it, it makes it more readable for humans too.
Yes, please commit to the HEAD branch.
2006-04-11 Kevin Cozens <kcozens@cvs.gnome.org> * app/pdb/gimp-pdb-query.c: Changed formatting of output from gimp-procedural-db-dump to make it more easily human (and machine) readable. Fixes bug #337843.