Date: Tue, 13 Aug 2013 15:54:56 -0400 From: Glen Barber <gjb@FreeBSD.org> To: Hiroki Sato <hrs@FreeBSD.org> Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, ian@FreeBSD.org Subject: Re: svn commit: r254217 - head/sys/conf Message-ID: <20130813195456.GB2241@glenbarber.us> In-Reply-To: <20130814.043625.854344935412527199.hrs@allbsd.org> References: <20130813171302.GQ2432@glenbarber.us> <1376415112.3320.229.camel@revolution.hippie.lan> <20130813175335.GR2432@glenbarber.us> <20130814.043625.854344935412527199.hrs@allbsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--0ntfKIWw70PvrIHh Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Wed, Aug 14, 2013 at 04:36:25AM +0900, Hiroki Sato wrote: > Glen Barber <gjb@FreeBSD.org> wrote > in <20130813175335.GR2432@glenbarber.us>: >=20 > gj> On Tue, Aug 13, 2013 at 11:31:52AM -0600, Ian Lepore wrote: > gj> > I'm not even sure what $0 *should* expand to in a script that was > gj> > sourced in. The manpage doesn't say anything meaningful to me abou= t it. > gj> > Maybe it's a kind of "indeterminate results" thing which is pretty = much > gj> > what we're seeing. > gj> > > gj> > gj> When the file is sourced, it should expand to the name of the file > gj> sourcing the file. >=20 > It is sourced in the osreldate.h target in Makefile, so $0 will be > /bin/sh. Why $0 is used here in the first place? The previous > version used $SYSDIR and it looks more reasonable to me. >=20 $0 is used to speed up execution of svnversion when evaluating if the ${svnversion} is compatible with the tree. Rather than running on the entire tree, $0 should only be run on a single file. But, I am at the point now of being ready to revert all these changes back to the original newvers.sh before I added svnliteversion... Glen --0ntfKIWw70PvrIHh Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.20 (FreeBSD) iQEcBAEBCAAGBQJSCo8QAAoJEFJPDDeguUaj4n8H/1sircn9bfJmYCCRuOXySSpV 9Riyz4Xo2gup38FM6tSFiHqmNhDQD8jJ//D/4bIVav6T1KXaZXdTy7lP1JznjnYJ WSl0uthuVaqL1oNdv7PgGIqTNDQikdN0F4jzhn0bOaU3hxZdTXSgkLpyH/dwj0kg VMJacAWtjFrvxPk4lB0CTDO1IVHBrEyFm5VZ2dUjaeUSiUPEeWDXoYGquAHthi35 d4+DOhJFMl36k+ofAVI9SGF3Y4xNGNPOUEG5Y+I/PEybjqRlQFZrz20PplDQ6MH6 rkqhTcI+BJ6u1amowwbbsA+IGtHNFzZZOfgE0zPk5m5fiPlP/XUv38ZDldK5U/I= =GsUn -----END PGP SIGNATURE----- --0ntfKIWw70PvrIHh--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130813195456.GB2241>