From: Ian Campbell Subject: Re: [PATCH] xen/makefile: Allow XEN_CHANGESET to be set externally Date: Fri, 17 May 2013 18:04:12 +0100 Message-ID: <1368810252.24012.61.camel@hastur.hellion.org.uk> References: <396ebb07e2d0f6d737e8.1368796882@andrewcoop.uk.xensource.com> <20130517143233.GA18796@aepfle.de> <519641B6.5030602@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <519641B6.5030602@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Olaf Hering , "Keir (Xen.org)" , Jan Beulich , "xen-devel@lists.xen.org" List-Id: xen-devel@lists.xenproject.org On Fri, 2013-05-17 at 15:41 +0100, Andrew Cooper wrote: > On 17/05/2013 15:32, Olaf Hering wrote: > > On Fri, May 17, Andrew Cooper wrote: > > > >> Build systems based on tarballs rather than source code trees, such as > >> rpms/debs are unable to obtain changeset infomation. > >> > >> Allow XEN_CHANGESET to be optionally specified in the environment. > > Isnt that already possible with 'echo "$XEN_CHANGESET" > .scmversion'? > > > > Olaf > > No - that results in the literal string "$XEN_CHANGESET" No, because your shell would expand it. In any case Olaf's point was obviously that you could write whatever string you would like to that file and it would have exactly the same effect as overriding XEN_CHANGESET when calling make. I expect it's also a little less prone to forgetting to pass it to make on every call. Ian.