From owner-cvs-all Wed May 15 10:55:17 2002 Delivered-To: cvs-all@freebsd.org Received: from ns1.otenet.gr (ns1.otenet.gr [195.170.0.2]) by hub.freebsd.org (Postfix) with ESMTP id 61BBB37B672; Wed, 15 May 2002 10:47:29 -0700 (PDT) Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by ns1.otenet.gr (8.12.3/8.12.3) with ESMTP id g4FHkcwH003052; Wed, 15 May 2002 20:46:38 +0300 (EEST) Received: from hades.hell.gr (patr530-b183.otenet.gr [212.205.244.191]) by mailsrv.otenet.gr (8.12.3/8.12.3) with ESMTP id g4FHiaHL017751; Wed, 15 May 2002 20:44:37 +0300 (EEST) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.3/8.12.3) with ESMTP id g4FHib6q065693; Wed, 15 May 2002 20:44:39 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Received: (from charon@localhost) by hades.hell.gr (8.12.3/8.12.3/Submit) id g4FHIrda065484; Wed, 15 May 2002 20:18:53 +0300 (EEST) (envelope-from keramida@ceid.upatras.gr) Date: Wed, 15 May 2002 20:18:52 +0300 From: Giorgos Keramidas To: "David E. O'Brien" Cc: committers@FreeBSD.ORG, cvs-all@FreeBSD.ORG Subject: Re: cvs commit: src/sys/dev/asr asr.c dptalign.h dptsig.h i2oadptr.h i2obscsi.h i2odep.h i2odpt.h i2oexec.h i2omsg.h i2otypes.h i2outil.h osd_unix.h osd_util.h sys_info.h Message-ID: <20020515171852.GB65155@hades.hell.gr> References: <200205142159.g4ELxBg73906@freefall.freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200205142159.g4ELxBg73906@freefall.freebsd.org> User-Agent: Mutt/1.3.99i Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG In message: <200205142159.g4ELxBg73906@freefall.freebsd.org> "David E. O'Brien" writes: > obrien 2002/05/14 14:59:10 PDT > > Modified files: > sys/dev/asr asr.c dptalign.h dptsig.h i2oadptr.h > i2obscsi.h i2odep.h i2odpt.h i2oexec.h > i2omsg.h i2otypes.h i2outil.h osd_unix.h > osd_util.h sys_info.h > Log: > `unexpand -a' should be run _before_ sed 's/^#define /#define^I/g'. I'd probably use a more elaborate regexp, if this is made part of a batch, automated tool though: sed -e 's/^#[[:space:]]*define[[:space:]][[:space:]]*\([^[:space:]]\)/#define^I\1/' (Note the ^I in the second pattern, and replace that with a TAB). This will correctly style(9)'ify things like: #define FOO #define BAR #define BAZ #if FOO_BAR # define LALA #endif Just thought I'd mention this in case someone likes using it. -- Giorgos Keramidas - http://www.FreeBSD.org keramida@FreeBSD.org - The Power to Serve To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message