From owner-svn-src-all@FreeBSD.ORG Tue Aug 13 19:54:59 2013 Return-Path: Delivered-To: svn-src-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id D7C6ECE9; Tue, 13 Aug 2013 19:54:59 +0000 (UTC) (envelope-from gjb@FreeBSD.org) Received: from mail0.glenbarber.us (mail0.glenbarber.us [IPv6:2607:fc50:1:2300:1001:1001:1001:face]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id AA0EF20D7; Tue, 13 Aug 2013 19:54:59 +0000 (UTC) Received: from glenbarber.us (nucleus.glenbarber.us [IPv6:2001:470:8:1205:2:2:ff:29]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: gjb) by mail0.glenbarber.us (Postfix) with ESMTPSA id 91E4FDA4E; Tue, 13 Aug 2013 19:54:58 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.8.3 mail0.glenbarber.us 91E4FDA4E Authentication-Results: mail0.glenbarber.us; dkim=none reason="no signature"; dkim-adsp=none Date: Tue, 13 Aug 2013 15:54:56 -0400 From: Glen Barber To: Hiroki Sato Subject: Re: svn commit: r254217 - head/sys/conf Message-ID: <20130813195456.GB2241@glenbarber.us> References: <20130813171302.GQ2432@glenbarber.us> <1376415112.3320.229.camel@revolution.hippie.lan> <20130813175335.GR2432@glenbarber.us> <20130814.043625.854344935412527199.hrs@allbsd.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="0ntfKIWw70PvrIHh" Content-Disposition: inline In-Reply-To: <20130814.043625.854344935412527199.hrs@allbsd.org> X-Operating-System: FreeBSD 10.0-CURRENT amd64 User-Agent: Mutt/1.5.21 (2010-09-15) Cc: svn-src-head@FreeBSD.org, svn-src-all@FreeBSD.org, src-committers@FreeBSD.org, ian@FreeBSD.org X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 13 Aug 2013 19:54:59 -0000 --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 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--