Revision: 6539
Author: nicdumz
Date: 2009-03-24 01:15:12 +0000 (Tue, 24 Mar 2009)
Log Message:
-----------
removetabs -> cleanindent: removing trailing whitespaces too
Added Paths:
-----------
trunk/pywikipedia/maintenance/cleanident
Removed Paths:
-------------
trunk/pywikipedia/maintenance/removetabs
Copied: trunk/pywikipedia/maintenance/cleanident (from rev 6538,
trunk/pywikipedia/maintenance/removetabs)
===================================================================
--- trunk/pywikipedia/maintenance/cleanident (rev 0)
+++ trunk/pywikipedia/maintenance/cleanident 2009-03-24 01:15:12 UTC (rev 6539)
@@ -0,0 +1,11 @@
+#!/bin/bash
+# Simple bash script to Unify identation in our python files:
+# * converts tabs into 4 spaces
+# * removes trailing whitespaces
+# (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
+ sed -i 's/ $//g' $file
+done
Property changes on: trunk/pywikipedia/maintenance/cleanident
___________________________________________________________________
Added: svn:executable
+ *
Added: svn:mergeinfo
+
Deleted: trunk/pywikipedia/maintenance/removetabs
===================================================================
--- trunk/pywikipedia/maintenance/removetabs 2009-03-24 01:08:35 UTC (rev 6538)
+++ trunk/pywikipedia/maintenance/removetabs 2009-03-24 01:15:12 UTC (rev 6539)
@@ -1,5 +0,0 @@
-#!/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
Show replies by date