Determining Gnokii version from source code

From GnokiiWiki

Jump to: navigation, search
  • There used to be a file with name VERSION containing the version information.
  • Since it's gone, the only way of determining the version is by looking insinde the file configure.in

Simple way

  1. cd into Gnokii source dir
  2. type:
    m4 configure.in | head
  3. You'll see something like:
AC_INIT([gnokii],
        [0.6.23cvs],
        [http://www.gnokii.org])

Fancy way

  • Create file (for example) with name VERSION.m4
define(`AC_INIT', `divert(0)$2divert(-1)')dnl
divert(`-1')
  • Execute GNU m4 with command line:
    m4 VERSION.m4 configure.in
  • Output will be similar to:
    [0.6.23cvs]
Personal tools