PATCH: trivial clean-whitespace.pl change
Jacques Marneweck
jacques at powertrip.co.za
Thu Apr 5 20:37:38 UTC 2007
Hi,
Does anyone know if we have svn:eol-style set to native?
Regards
--jm
On 05 Apr 2007, at 6:11 PM, Tim Yardley wrote:
> Brad;
>
> Some of the code that's come into the tree has brought in mixed
> tabs and
> spaces, as well as trailing spaces. Running devtools/clean-
> whitespace.pl
> (in memcached/server) will clean that back up.
>
> Here is a trivial patch to that script to catch the autoconf mixed
> tabs as
> well.
>
> $ svn diff
> Index: server/devtools/clean-whitespace.pl
> ===================================================================
> --- server/devtools/clean-whitespace.pl (revision 485)
> +++ server/devtools/clean-whitespace.pl (working copy)
> @@ -2,7 +2,7 @@
> use strict;
> use FindBin qw($Bin);
> chdir "$Bin/.." or die;
> -my @files = (glob("*.h"), glob("*.c"));
> +my @files = (glob("*.h"), glob("*.c"), glob("*.ac"));
> foreach my $f (@files) {
> open(my $fh, $f) or die;
> my $before = do { local $/; <$fh>; };
>
> Files currently affected in the multithread branch:
> $ svn status
> M server/stats.c
> M server/slabs.c
> M server/memcached.c
> M server/thread.c
> M server/assoc.c
> M server/slabs.h
> M server/items.c
> M server/configure.ac
>
> /tmy
--
Jacques Marneweck
http://www.powertrip.co.za/
http://www.powertrip.co.za/blog/
#include <std/disclaimer.h>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20070405/cdb71cfc/attachment.html
More information about the memcached
mailing list