At 16:13 -0500 05 Dec 2012, I wrote:
+ echo '#define ZSH_PATCHLEVEL "'`git describe --tags`'"' > $@.tmp
Thinking about this a bit more, that should probably use the git describe's --long option as well. That way it will consistently produce output in the tag-commits-hash format rather than just giving the tag when there are no later changes.