1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 11:02:59 +02:00
llvm-mirror/utils/lint/remove_trailing_whitespace.sh
Misha Brukman 13dd5f564d Keep the newline character at the end of the lines whose trailing whitespace we
are deleting; otherwise, everything ends up on a single line.

llvm-svn: 65185
2009-02-20 22:30:46 +00:00

7 lines
132 B
Bash
Executable File

#!/bin/sh
# Deletes trailing whitespace in-place in the passed-in files.
# Sample syntax:
# $0 *.cpp
perl -pi -e 's/\s+$/\n/' $*