From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Jason@zx2c4.com Received: from frisell.zx2c4.com (frisell.zx2c4.com [192.95.5.64]) by krantz.zx2c4.com (ZX2C4 Mail Server) with ESMTP id d4108b3b for ; Wed, 16 Nov 2016 21:07:34 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTP id 0f102d87 for ; Wed, 16 Nov 2016 21:07:34 +0000 (UTC) Received: by frisell.zx2c4.com (ZX2C4 Mail Server) with ESMTPSA id bb923d1f (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128:NO) for ; Wed, 16 Nov 2016 21:07:33 +0000 (UTC) Received: by mail-wm0-f48.google.com with SMTP id f82so101497181wmf.1 for ; Wed, 16 Nov 2016 13:10:25 -0800 (PST) MIME-Version: 1.0 In-Reply-To: <87shqr6sw1.fsf@alice.fifthhorseman.net> References: <87shqr6sw1.fsf@alice.fifthhorseman.net> From: "Jason A. Donenfeld" Date: Wed, 16 Nov 2016 22:10:23 +0100 Message-ID: To: Daniel Kahn Gillmor Content-Type: text/plain; charset=UTF-8 Cc: WireGuard mailing list Subject: Re: [WireGuard] RFE: A notion of VERSION (was: Debugging AllowedIps) List-Id: Development discussion of WireGuard List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Wed, Nov 16, 2016 at 10:01 PM, Daniel Kahn Gillmor wrote: > On Thu 2016-11-17 02:40:30 +0900, Jason A. Donenfeld wrote: >> Trying again with no line breaks: >> > Please don't assume that the source code is built from a git repository. > On debian, we build from the tarball, which is extracted from the git > repo, and we have nothing for "git rev-parse" to draw from. That's why my horrible one liner falls back on getting the version from the parent directory... Not pretty. > > For the cost of one extra commit just before tagging, you could populate > a version.txt file and this then becomes $(shell cat version.txt). Yea most likely this is what will wind up happening...