diff options
Diffstat (limited to 'm4/rmtspc')
-rwxr-xr-x | m4/rmtspc | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/m4/rmtspc b/m4/rmtspc new file mode 100755 index 000000000000..431691d9e4bd --- /dev/null +++ b/m4/rmtspc @@ -0,0 +1,6 @@ +#!/bin/sh +# remove trailing spaces from C code +#set -x +for i in $*; do + sed 's/[ ]*$//g' < $i > $i.tmp_$$ && mv $i.tmp_$$ $i +done |