Revision: 6538 Author: nicdumz Date: 2009-03-24 01:08:35 +0000 (Tue, 24 Mar 2009)
Log Message: ----------- Adding a bash oneliner to remove tabs in our code
Added Paths: ----------- trunk/pywikipedia/maintenance/removetabs
Added: trunk/pywikipedia/maintenance/removetabs =================================================================== --- trunk/pywikipedia/maintenance/removetabs (rev 0) +++ trunk/pywikipedia/maintenance/removetabs 2009-03-24 01:08:35 UTC (rev 6538) @@ -0,0 +1,5 @@ +#!/bin/bash +# Simple bash script to converts tabs in our python files into 4 spaces +# (c) 2009 Nicolas Dumazet +# License: WTFPL Version 2 +for file in $(grep -Rl [[:cntrl:]] . | grep -v ".svn" | grep ".py$"); do sed -i 's/\t/ /g' $file; done
Property changes on: trunk/pywikipedia/maintenance/removetabs ___________________________________________________________________ Added: svn:executable + *
pywikipedia-l@lists.wikimedia.org