Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 14 Aug 2006 14:47:19 +0200
From:      des@des.no (Dag-Erling =?iso-8859-1?Q?Sm=F8rgrav?=)
To:        Dmitry Pryanishnikov <dmitry@atlantis.dp.ua>
Cc:        src-committers@freebsd.org, Alexander Leidinger <netchild@freebsd.org>, cvs-src@freebsd.org, cvs-all@freebsd.org, Ruslan Ermilov <ru@freebsd.org>, Kris Kennaway <kris@obsecurity.org>
Subject:   Re: cvs commit: src ObsoleteFiles.inc
Message-ID:  <863bbzv608.fsf@xps.des.no>
In-Reply-To: <867j1bv65w.fsf@xps.des.no> (Dag-Erling =?iso-8859-1?Q?Sm=F8r?= =?iso-8859-1?Q?grav's?= message of "Mon, 14 Aug 2006 14:43:55 %2B0200")
References:  <200608101942.k7AJgOrB051336@repoman.freebsd.org> <20060811235619.G93570@atlantis.atlantis.dp.ua> <20060811220244.GC5237@rambler-co.ru> <20060811223642.GA21117@xor.obsecurity.org> <20060812005213.384b744b@Magellan.Leidinger.net> <20060812084253.GA8597@rambler-co.ru> <20060812123531.GA36569@xor.obsecurity.org> <20060813185551.GA15783@rambler-co.ru> <864pwfwpnm.fsf@xps.des.no> <20060814153428.G28464@atlantis.atlantis.dp.ua> <867j1bv65w.fsf@xps.des.no>

next in thread | previous in thread | raw e-mail | index | archive | help
des@des.no (Dag-Erling Sm=F8rgrav) writes:
> Dmitry Pryanishnikov <dmitry@atlantis.dp.ua> writes:
> > So ':>>${FILE}' isn't the same as 'touch ${FILE}' for existing files.
> when the purpose is only "to ensure that a file exists" as I wrote
> above, this does not matter.

besides, in most cases where touch is used in src/sys, what is really
needed is truncate (or :>):

opt_ppp.h:
        touch ${.TARGET}
.if ${PPP_BSDCOMP} > 0
        echo "#define PPP_BSDCOMP ${PPP_BSDCOMP}" >> ${.TARGET}
.endif
.if ${PPP_DEFLATE} > 0
        echo "#define PPP_DEFLATE ${PPP_DEFLATE}" >> ${.TARGET}
.endif
.if ${PPP_FILTER} > 0
        echo "#define PPP_FILTER ${PPP_FILTER}" >> ${.TARGET}
.endif
.endif

if for some reason this target should run several times, opt_ppp.h
will end up with multiple definitions of the same macros.

DES
--=20
Dag-Erling Sm=F8rgrav - des@des.no



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?863bbzv608.fsf>