From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rob Herring Subject: Re: [PATCH] Extract document version from git tag Date: Thu, 7 Dec 2017 11:01:21 -0600 Message-ID: References: <20171207163306.24679-1-grant.likely@arm.com> Mime-Version: 1.0 Return-path: In-Reply-To: <20171207163306.24679-1-grant.likely-5wv7dgnIgG8@public.gmane.org> Sender: devicetree-spec-owner-u79uwXL29TY76Z2rM5mHXA@public.gmane.org List-ID: Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Grant Likely Cc: "devicetree-spec-u79uwXL29TY76Z2rM5mHXA@public.gmane.org" , Grant Likely On Thu, Dec 7, 2017 at 10:33 AM, Grant Likely wrote: > Instead of hard coding the document version in the config file, use > 'git describe' to get the version number from the tags and use that. > Just like before, if the version string contains a '-', then it is not > an official release and a watermark will be added to the PDF. This > catches prereleases "-pre*", untagged revisions "-g", and > uncommitted changes "-dirty". > > Signed-off-by: Grant Likely > --- > source/conf.py | 10 +++++++--- > 1 file changed, 7 insertions(+), 3 deletions(-) Nice! Reviewed-by: Rob Herring