Some tar implementations cannot or do not auto detect the compress format.
For example, I saw today:
$ tar xvf kea-0.9.tar.gz
tar: Cannot identify format. Searching...
tar: Cpio file name length 41449 is out of range
tar: Invalid header, starting valid header search.
...
tar: Cpio file name length 39676 is out of range
tar: End of archive volume 1 reached
tar: bcpio vol 1, 0 files, 3811899 bytes read, 0 bytes written in 1 secs (3811899 bytes/sec)
tar: Unexpected EOF on archive file
Did say 0.9-beta1 for 0.9 release for example.
So added the __VERSION__ macro.
Note that this may look ugly in the "git" branch or other
odd named versions but will match names if a dist tarball
was created from git master. But will be correct for official releases.
Okayed via jabber.