From owner-freebsd-ports Mon Oct 16 9:30: 4 2000 Delivered-To: freebsd-ports@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id A369F37B674 for ; Mon, 16 Oct 2000 09:30:02 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id JAA29228; Mon, 16 Oct 2000 09:30:02 -0700 (PDT) (envelope-from gnats@FreeBSD.org) Date: Mon, 16 Oct 2000 09:30:02 -0700 (PDT) Message-Id: <200010161630.JAA29228@freefall.freebsd.org> To: freebsd-ports@FreeBSD.org Cc: From: "J. 'LoneWolf' Mattsson" Subject: Re: ports/22027: New port: ccdoc v0.7a Reply-To: "J. 'LoneWolf' Mattsson" Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org The following reply was made to PR ports/22027; it has been noted by GNATS. From: "J. 'LoneWolf' Mattsson" To: Peter Pentchev Cc: FreeBSD-gnats-submit@freebsd.org Subject: Re: ports/22027: New port: ccdoc v0.7a Date: Mon, 16 Oct 2000 18:19:13 +0200 At 19:02 2000-10-16 +0300, Peter Pentchev wrote: >Just an idea - you may avoid inserting the ^M itself by not using sed, but >tr - >as in tr -d "\015" < infile > outfile. Or for in-place editing, there's >always perl -pi -e 's/\r//g' filename. Well thanks! I haven't had the time or chance to learn perl yet, and I've never used tr before. Only been using *nix for a couple of years, so my knowledge is not fully comprehensive yet :/ >Well, come to think of it, Perl might be a bit of an overkill just for >removing \r's in a single file; you can't beat it, though, for things like: > > find ${WRKSRC} -type f | xargs perl -pi -e 's/\r//g' Okay, do you want me to change this in the port, or should I wait until I upgrade it to 0.8 (whenever that one might be released)? It's not a problem for me to change it, so I'll do it if you want me to... Only thing is that mail I send with 'send-pr' gets blocked by MAPS on the freebsd mailhub. Guess I've configured something wrong... >(and usually you can even drop the /g, making processing about 0.05% faster ;) Hehe, nothing like optizing :) >Just my two cents :) Much appreciated. I'll go read the man page for tr tomorrow then :) Cheers, /Johny #-----------------------------------# . Johan Mattsson / \__/\ lonewolf@flame.org /' , : http://www.flame.org/~lonewolf ; ( o o irc.sorcery.net:9000 as LoneWolf / , ~. \ Sun Certified Java(tm) 2 Developer / ( `- ..__" Veni. Vidi. Vici. ' /' #-----------------------------------# To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message