aboutsummaryrefslogtreecommitdiff
path: root/fix-patch-whitespace
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-03-16 11:08:49 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2016-05-02 14:53:05 +0200
commit101c895e6a0d1f9a91878043ad2684971efaebdf (patch)
tree81a01a14f06fd1dcce8c582a170d0be46fc1a261 /fix-patch-whitespace
parenteaa19eb55ca9cf513e274a5775ea23d993448263 (diff)
downloadnx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.tar.gz
nx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.tar.bz2
nx-libs-101c895e6a0d1f9a91878043ad2684971efaebdf.zip
fix-patch-whitepspace: Copy script from X.Org's xserver Git repo.
Diffstat (limited to 'fix-patch-whitespace')
-rwxr-xr-xfix-patch-whitespace4
1 files changed, 4 insertions, 0 deletions
diff --git a/fix-patch-whitespace b/fix-patch-whitespace
new file mode 100755
index 000000000..2d06d8ea8
--- /dev/null
+++ b/fix-patch-whitespace
@@ -0,0 +1,4 @@
+#!/bin/sh
+git diff --check |
+sed -n 's!^\([^:]*\):\([^:]*\):.*!sed -i "\2 s/[ \t]*$//; \2 s/ *\t/\t/g" \1!p' |
+sh