aboutsummaryrefslogtreecommitdiff
path: root/contrib/cleanup
diff options
context:
space:
mode:
authorXTZGZoReX <none@none>2009-04-07 12:23:58 +0200
committerXTZGZoReX <none@none>2009-04-07 12:23:58 +0200
commitaf2d4f039bd3dc87e8112adf1d8af0744e6ac11d (patch)
tree3c9eb08fa1d1c8c60c7cba2a117fae0285da4117 /contrib/cleanup
parent2991e3aedbb8da571863fb4f80b4c841f3d7f42c (diff)
* Added tab2spaces and trailing-whitespace cleanup scripts to contrib.
--HG-- branch : trunk
Diffstat (limited to 'contrib/cleanup')
-rw-r--r--contrib/cleanup/tab2spaces.sh2
-rw-r--r--contrib/cleanup/whitespace.sh2
2 files changed, 4 insertions, 0 deletions
diff --git a/contrib/cleanup/tab2spaces.sh b/contrib/cleanup/tab2spaces.sh
new file mode 100644
index 00000000000..1022be7905c
--- /dev/null
+++ b/contrib/cleanup/tab2spaces.sh
@@ -0,0 +1,2 @@
+# Be sure to specify files instead of * when running the script.
+perl -p -i -e "s/\t/ /g" *
diff --git a/contrib/cleanup/whitespace.sh b/contrib/cleanup/whitespace.sh
new file mode 100644
index 00000000000..a351e25359b
--- /dev/null
+++ b/contrib/cleanup/whitespace.sh
@@ -0,0 +1,2 @@
+# Be sure to specify files instead of * when running the script.
+perl -p -i -e "s/ +$//g" *