On 07/17/12 21:12, Michael Roth wrote: > On Tue, Jul 17, 2012 at 01:33:32PM -0500, Anthony Liguori wrote: >> Let's stop screwing up releases by having a script do the work that Anthony's >> fat fingers can't seem to get right. >> >> Cc: Michael Roth <[email protected]> >> Signed-off-by: Anthony Liguori <[email protected]> > > Breaks if there's no tag corresponding with the contents of VERSION, > but that might be considered a feature (an alternative might be to > assume it's a development release, use current HEAD for master, and append the > short git hash to the version). Works well as far as I can tell though, > and I made a special point to confirm it did indeed output a bz2 :)
Or just use 'git describe --long' to figure what the version is. This way you can easily build a tarball for any git commit, and a release tarball is just 'git checkout v$version; make dist'. cheers, Gerd
