Re: Removing the whitespaces??? [Was: Re: Why not "attach" patches?]

Ravindra Jaju (jaju@it.iitb.ac.in)
Thu, 17 Jan 2002 14:26:58 +0530


On Wed, Jan 16, 2002 at 12:11:35AM +0000, Henning P. Schmiedehausen wrote:
> apply patches. Run this. Rinse. Repeat. :-)
>
> --- cut ---
>
> mkdir /usr/src/linux.noblanks
>
> (
> cd /usr/src/linux
> find . -type d -exec mkdir -p /usr/src/linux.noblanks/{} \;
> for i in `find . -type f`; do
> perl -ne 's/[ ]+$//; print;' < ${i} > /usr/src/linux.noblanks/${i}
> done
> )
>
> diff -ur /usr/src/linux /usr/src/linux.noblanks | mail -s "blanks removed" torvalds@transmeta.com
>
> rm -rf /usr/src/linux.noblanks
> --- cut ---
>
> (This is a TAB and a space in the square brackets above.
> Don't use \s. Trust me.)
>
> linux-2.2.20.tar.bz2: 15,751,285 bytes
> linux-2.2.20-nbl.tar.bz2: 15,608,085 bytes
>
> Patch Size (uncompressed): 17,815,166 bytes (yes this _is_ 17,4 MBytes)
> (compressed, bzip2): 3,322,456 bytes
>
> One mega-patch to shear off about 140 KBytes from the compressed (and
> about 170 k from the unpacked (94488 vs. 94316 KBytes ) kernel source
> would (while it may be the biggest single "reduce-size-of-kernel-tree
> patch" in years :-) ) a little gross.

Uh .. why not let Linus just run this program on *his* machine, and putting
up the patch again as a "program to be run"? ;-)

Saves Linus of the headache to check if there are any bugs in the patch
before applying ( and that too, with the funny label of "lossy something"
he's earned ... saves a lot of bandwidth! ;-) )

regards,
jaju
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/