From af2d4f039bd3dc87e8112adf1d8af0744e6ac11d Mon Sep 17 00:00:00 2001 From: XTZGZoReX Date: Tue, 7 Apr 2009 12:23:58 +0200 Subject: * Added tab2spaces and trailing-whitespace cleanup scripts to contrib. --HG-- branch : trunk --- contrib/cleanup/tab2spaces.sh | 2 ++ contrib/cleanup/whitespace.sh | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 contrib/cleanup/tab2spaces.sh create mode 100644 contrib/cleanup/whitespace.sh (limited to 'contrib') 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" * -- cgit v1.2.3