|
From: | Kristian Lein-Mathisen |
Subject: | Re: [Chicken-hackers] chicken-install bug: does not copy all folders when cross-compiling |
Date: | Wed, 4 Nov 2015 15:48:31 +0100 |
On Thu, Oct 15, 2015 at 01:33:59PM +0200, Kristian Lein-Mathisen wrote:
> Hi dear chickeners!
>
> We have a really nice macro[1] that runs "git describe --tags" and produces
> string-output of our current version at compile-time. This method is (when
> not cross-compiling) very robust because it doesn't use any temporary files
> to store the current version etc.
Hi Kristian,
It's a common workflow to want to automatically update the egg version
in some file, because for the egg system it's required to update at
least the .release-info file, and optionally the meta-file if you're
using the file-listing method of serving an egg.
There's the "git-egg-author" egg which will automatically update the
release-info file, tags and commits. You could then read the version
from that in your macro.
This is probably not what you're looking for, but the cp -T hack doesn't
sound very appealing. It's not POSIX (the BSDs for example don't know
about it), and treating the target as a plain file sounds like it could
cause other problems.
Cheers,
Peter
[Prev in Thread] | Current Thread | [Next in Thread] |