Simplifinf is a very simple utility that parses an inf file of your choosing and spits out a new file that has commentary removed (along with the corresponding lines if there was nothing else on there), tabs and redundant spaces removed and adds one space before and after any assignment (=) symbols. It leaves anything inside quotes alone and makes sure there's an empty line between each section of the inf.
The only limitation I'm aware of is the fact that it doesn't support unicode infs.. I have no need of this, and don't know how to add the support, so don't expect to see this. Of course the source code is included.
As far as I know the created inf is always correct, however if you notice any inconsistencies or corruptions please point them out to me (and include the section of the original inf that was effected).
The program includes almost no text and, I'm afraid, doesn't take switches. But then, how often would you use it? Just open the executable and type in the filename of the inf file you want to change, including the .inf extension, or drag the file you want to change onto the executable for instant gratification.
Download link: here
MD5: 7430D8AC9D69DEB5532FEEA0E1A43366
Known bugs in v0.30b:
None
Limitations:
No configuration (through switches or otherwise)
Only works on ANSI encoded files
Changelog:
v0.10: initial release
v0.11: now with drag-and-drop support!
v0.11a: fixed drag-and-drop support to work on files in directories that don't have spaces in them (doh)
v0.20: rewritten from scratch to improve code sanity. Also fixes issue of spaces being deleted where they shouldn't be. Since there's been so much interest in this I'm changing the version numbering to allow for the fact that this might be getting a few updates. Earlier numbers have been changed to reflect this.
v0.21: another rewrite later, simplifinf should now be a lot more stable. Nothing about its functionality was changed though.
v0.25: rewritten once more (I'm doing too much of these, yeesh) This release adds multi-pass support and fixes a few bugs, and you can now tell it what it should call the output file (and where it should place it, if you like)
v0.30: added a second pass - now assignment symbols lign up in columns! (This was a lot harder to add than I'd hoped and I hope I might be able to improve the implementation later, but it works)
v0.30a: forgot to add logic for handling tabs in last version
v0.30b: fixed bug where second pass would crash the program. Also completely rewritten for modularity, but since it doesn't change anything for the end-user yet I'm not incrementing the version number.
Enjoy!
