Node:get-tarball-version, Next:, Previous:find-include-dir, Up:Utility Manual



get-tarball-version

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)".

synopsis

	get-tarball-version [options] tarball-file
If 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.

bug

The naming rule for tarball file is limited.