[Piuparts-devel] whitespace cleanup (was: Re: some patches for piuparts)

Andreas Beckmann debian at abeckmann.de
Sun Nov 6 11:53:32 UTC 2011


>> I also have a whitespace cleanup patch - expand tabs end remove trailing
>> whitespace - but that's a bit tricky to handle and most of my patches
...
> use a tool to be able to generate it?

#!/bin/sh

for f in *.py */*.py ; do
        expand $f > $f.tmp
        mv $f.tmp $f
done

sed -i -e 's/ *$//' $(find . -name .git -prune -o -type f -print)


Andreas



More information about the Piuparts-devel mailing list