Date: Wed, 15 May 2002 20:18:52 +0300 From: Giorgos Keramidas <keramida@FreeBSD.ORG> To: "David E. O'Brien" <obrien@FreeBSD.ORG> 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> In-Reply-To: <200205142159.g4ELxBg73906@freefall.freebsd.org> References: <200205142159.g4ELxBg73906@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message: <200205142159.g4ELxBg73906@freefall.freebsd.org>
"David E. O'Brien" <obrien@FreeBSD.ORG> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020515171852.GB65155>
