From: Ralf Baechle <ralf@linux-mips.org>
To: Niels Sterrenburg <pulsar@kpsws.com>
Cc: linux-mips@linux-mips.org
Subject: Re: CVS Update@linux-mips.org: linux
Date: Wed, 27 Jul 2005 13:24:27 -0400 [thread overview]
Message-ID: <20050727172427.GB3626@linux-mips.org> (raw)
In-Reply-To: <57480.194.171.252.100.1122478386.squirrel@mail.kpsws.com>
On Wed, Jul 27, 2005 at 05:33:06PM +0200, Niels Sterrenburg wrote:
> Do you detect and fix these trailing whitespaces with a script ?
> If so can you tell me where I can find it (or send it)?
Well, here's my nuke-trailing-whitespace skript. Pretty small - 80% of it
is the legalese and a brief comment. In case you're using quilt you
can do something like
nuke-trailing-whitespace `quilt files`
quilt refresh --diffstat
to clean a particular patch
Ralf
#! /bin/bash
#
# Copyright (C) 2002 by Ralf Baechle (ralf@linux-mips.org)
#
# This program is free software; you can redistribute it and/or modify it
# under the terms of the GNU General Public License as published by the
# Free Software Foundation; either version 2 of the License, or (at your
# option) any later version.
#
# THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
# NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
# USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
# ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
# You should have received a copy of the GNU General Public License along
# with this program; if not, write to the Free Software Foundation, Inc.,
# 675 Mass Ave, Cambridge, MA 02139, USA.
#
# nuke-trailing-whitespace - Nuke trailing whitespace in sourcecode
#
# Usage: nuke-trailing-whitespace [file]...
#
find $* -name CVS -prune -o -type f -print | \
fgrep -v defconfig |
xargs --no-run-if-empty -- perl -pi -e 's/[ \t]+$//'
next prev parent reply other threads:[~2005-07-27 17:22 UTC|newest]
Thread overview: 100+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <20050725213607Z8225534-3678+4335@linux-mips.org>
[not found] ` <57480.194.171.252.10 0.1122478386.squirrel@mail.kpsws.com>
2005-07-27 15:33 ` CVS Update@linux-mips.org: linux Niels Sterrenburg
2005-07-27 15:37 ` Geert Uytterhoeven
2005-07-27 16:37 ` Maciej W. Rozycki
2005-07-27 17:24 ` Ralf Baechle [this message]
2005-07-27 18:03 ` Maciej W. Rozycki
2005-07-27 19:28 ` Ralf Baechle
2005-07-28 7:36 ` Geert Uytterhoeven
2005-07-28 10:13 ` Maciej W. Rozycki
2005-07-28 13:46 ` Ralf Baechle
2005-07-28 11:23 ` Niels Sterrenburg
[not found] <20050921213950Z8225559-3678+10018@linux-mips.org>
2005-09-22 9:28 ` Matej Kupljen
[not found] <20050920002016Z8225531-3678+9789@linux-mips.org>
2005-09-20 8:19 ` Jerry
2005-09-20 14:53 ` Pete Popov
[not found] <20050902095417Z8224772-3678+8160@linux-mips.org>
2005-09-02 11:35 ` Maciej W. Rozycki
2005-09-02 12:01 ` Thiemo Seufer
2005-09-02 13:30 ` Maciej W. Rozycki
[not found] <20050901085634Z8225385-3678+8053@linux-mips.org>
2005-09-01 11:18 ` Ralf Baechle
2005-09-01 11:31 ` Ralf Baechle
[not found] <20050820142723Z8225252-3678+7060@linux-mips.org>
2005-08-22 9:18 ` Maciej W. Rozycki
2005-08-22 10:26 ` Ralf Baechle
2005-08-22 11:49 ` Maciej W. Rozycki
[not found] <20050727214818Z8225782-3678+4592@linux-mips.org>
2005-07-28 10:19 ` Maciej W. Rozycki
[not found] <20050721153359Z8225218-3678+3745@linux-mips.org>
2005-07-22 4:30 ` Ralf Baechle
2005-07-22 12:10 ` Thiemo Seufer
2005-07-22 13:06 ` Ralf Baechle
2005-07-22 13:24 ` Maciej W. Rozycki
2005-07-22 14:00 ` Ralf Baechle
2005-07-22 14:18 ` Thiemo Seufer
2005-07-26 11:12 ` Maciej W. Rozycki
2005-07-22 14:16 ` Thiemo Seufer
[not found] <20050721153639Z8225221-3678+3748@linux-mips.org>
2005-07-21 21:53 ` Ralf Baechle
[not found] <20050714174806Z8226711-3678+3079@linux-mips.org>
2005-07-15 15:16 ` Yoichi Yuasa
2005-07-15 18:07 ` Ralf Baechle
2005-07-15 23:23 ` Pete Popov
2005-07-15 23:23 ` Pete Popov
[not found] <20050714001711Z8226701-3678+2977@linux-mips.org>
2005-07-14 15:35 ` Maciej W. Rozycki
2005-07-14 15:51 ` Pete Popov
2005-07-14 15:59 ` Maciej W. Rozycki
2005-07-14 16:01 ` Pete Popov
[not found] <20050712145438Z8226641-3678+2759@linux-mips.org>
2005-07-12 15:30 ` Maciej W. Rozycki
[not found] <20050711170613Z8226486-3678+2546@linux-mips.org>
2005-07-11 17:31 ` Ralf Baechle
2005-07-11 17:44 ` Maciej W. Rozycki
2005-07-11 17:53 ` Ralf Baechle
2005-07-11 18:05 ` Maciej W. Rozycki
2005-07-11 19:25 ` Thiemo Seufer
2005-07-12 11:16 ` Maciej W. Rozycki
[not found] <20050711083532Z8226446-3678+2437@linux-mips.org>
2005-07-11 8:45 ` Ralf Baechle
[not found] <20050708091711Z8226352-3678+1954@linux-mips.org>
2005-07-08 12:02 ` Ralf Baechle
2005-07-08 12:12 ` Maciej W. Rozycki
2005-07-08 13:43 ` Richard Sandiford
2005-07-08 13:55 ` Ralf Baechle
[not found] <20050707091937Z8226163-3678+1737@linux-mips.org>
2005-07-07 11:32 ` Maciej W. Rozycki
2005-07-07 12:12 ` Thiemo Seufer
2005-07-07 12:19 ` Maciej W. Rozycki
2005-07-07 12:22 ` Thiemo Seufer
2005-07-07 13:01 ` Maciej W. Rozycki
2005-07-07 13:51 ` Thiemo Seufer
2005-07-07 16:29 ` Ralf Baechle DL5RB
2005-07-07 16:42 ` Maciej W. Rozycki
2005-07-08 13:42 ` Richard Sandiford
2005-07-08 15:05 ` Maciej W. Rozycki
2005-07-08 15:39 ` Richard Sandiford
2005-07-08 15:59 ` Maciej W. Rozycki
[not found] <20050618135450Z8225248-1340+9141@linux-mips.org>
2005-06-20 10:27 ` Maciej W. Rozycki
[not found] <20050605035727Z8225003-1340+8177@linux-mips.org>
2005-06-06 12:16 ` Ralf Baechle
[not found] <20050603022113Z8226140-1340+8064@linux-mips.org>
2005-06-03 9:22 ` Ralf Baechle
2005-06-03 10:21 ` Thiemo Seufer
2005-06-03 10:55 ` Ralf Baechle
2005-06-03 11:12 ` Geert Uytterhoeven
2005-06-03 11:30 ` Ralf Baechle
2005-06-03 11:37 ` Geert Uytterhoeven
[not found] <20050506143118Z8225421-1340+6642@linux-mips.org>
2005-05-06 14:51 ` Maciej W. Rozycki
2005-05-06 18:41 ` Maciej W. Rozycki
[not found] <20050412140045Z8224988-1340+5602@linux-mips.org>
2005-04-12 16:57 ` Christoph Hellwig
2005-04-12 17:48 ` Thiemo Seufer
[not found] <20050401175340Z8226142-1340+5040@linux-mips.org>
2005-04-02 10:11 ` Thiemo Seufer
2005-04-04 11:26 ` Maciej W. Rozycki
[not found] <20050304151343Z8225933-1340+3959@linux-mips.org>
2005-03-16 18:51 ` Maciej W. Rozycki
[not found] <20050225133831Z8225462-1340+3675@linux-mips.org>
2005-02-25 16:50 ` Maciej W. Rozycki
[not found] <20050225131124Z8225457-1340+3673@linux-mips.org>
2005-02-25 16:48 ` Maciej W. Rozycki
[not found] <20050214035304Z8225242-1340+3175@linux-mips.org>
2005-02-14 15:34 ` Ralf Baechle
2005-02-14 15:41 ` sjhill
2005-02-14 16:06 ` Maciej W. Rozycki
2005-02-14 18:34 ` Ralf Baechle
[not found] <20050213213130Z8225210-1340+3164@linux-mips.org>
2005-02-13 21:33 ` Maciej W. Rozycki
[not found] <20050115013112Z8225557-1340+1316@linux-mips.org>
2005-01-19 4:42 ` Yoichi Yuasa
2005-01-19 5:04 ` Maciej W. Rozycki
2005-01-19 5:31 ` Yoichi Yuasa
2005-01-19 5:35 ` Maciej W. Rozycki
2005-01-19 6:21 ` Yoichi Yuasa
2005-03-07 16:44 ` Yoichi Yuasa
2005-03-17 15:47 ` Yoichi Yuasa
2005-03-20 22:14 ` Ralf Baechle
[not found] <20050109193411Z8225245-1340+894@linux-mips.org>
2005-01-09 20:55 ` Geert Uytterhoeven
2005-01-09 21:15 ` Ralf Baechle
[not found] <20050108180025Z8225397-1340+834@linux-mips.org>
2005-01-08 20:25 ` Ilya A. Volynets-Evenbakh
2005-01-08 22:07 ` Ralf Baechle
[not found] <20050107191947Z8225432-1341+49@linux-mips.org>
2005-01-07 20:43 ` Ilya A. Volynets-Evenbakh
2005-01-08 0:56 ` Thiemo Seufer
[not found] <20041228080623Z8224908-1340+368@linux-mips.org>
2005-01-01 13:40 ` Geert Uytterhoeven
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050727172427.GB3626@linux-mips.org \
--to=ralf@linux-mips.org \
--cc=linux-mips@linux-mips.org \
--cc=pulsar@kpsws.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.