Node:get-tarball-version, Next:insert-date-string, Previous:find-include-dir, Up:Utility Manual
The get-tarball-version
gets the version number from tar-ball
name. The tar-ball name must be "name-X.Y.Z.tar.gz(or tar.bz2, .tgz)".
get-tarball-version [options] tarball-fileIf the option `-major' given, the major version number is printed to standard output. The `-minor' option prints minor version number. The `-micro' option prints micro version number. The `-name' option prints the package name (which does not include version number) instead of versions. if no options are given, all version (such as X.Y.Z) is printed.
The naming rule for tarball file is limited.