On 3 January 2018 at 18:08, Neal Gompa <ngompa13@xxxxxxxxx> wrote: [..] >> Many years ago when I've been working on PLD we wrote such spec >> indentation tool using few KB awk script. using this script was >> possible to keep the same style across all spec files with: >> - put in exact order spec fields in spec preamble >> - format all %description to 80 cols >> - put in spec exact order of %packages and %files sections >> - substitute exact strings to use macros > > For a while, I've been thinking about porting over the excellent > spec-cleaner[1] tool from openSUSE for doing this with Fedora > packages. > > I may actually decide to do this, depending on how much spare time I can muster. > > [1]: https://github.com/openSUSE/spec-cleaner This tool is doing so many things that it would be really hard to adapt it to not trash some number of spec files. In attachment you can find this script which was used in PLD. Maybe after align/indent all Fedora spec using such simpler filter will be possible to use something more complicated/sophisticated. I'm only suggesting to consider way in which not all indentation/style changes will be introduced in one go .. kloczek -- Tomasz Kłoczko | LinkedIn: http://lnkd.in/FXPWxH
Attachment:
adapter.awk
Description: application/awk
_______________________________________________ devel mailing list -- devel@xxxxxxxxxxxxxxxxxxxxxxx To unsubscribe send an email to devel-leave@xxxxxxxxxxxxxxxxxxxxxxx