Re: Best practice question
- From
- Santi Béjar <sbejar@gmail.com>
- Date
- Jun 19, 2008, 15:40 UTC
- Message-ID
- <8aa486160806190840m697ac1en3214626a56014be1@mail.gmail.com>
- In-Reply-To
- <485A6E03.6090509@et.gatech.edu>
On Thu, Jun 19, 2008 at 16:32, D. Stuart Freeman <stuart.freeman@et.gatech.edu> wrote:
> My project has an "about" page that lists the version. I understand why > git doesn't do keyword expansion, but I'm wondering if there's a > recommended best practice for keeping that up to date.
You can look at how git does it: It generates a GIT-VERSION-FILE with:
http://git.kernel.org/?p=git/git.git;a=blob;f=GIT-VERSION-GEN;hb=HEAD
and reads it in the Makefile. Or you could generate a version.h file.
Santi