3 # Little shell script to grab current version number from configure.in
5 # $Id: version,v 1.3 2003/01/28 22:39:30 jjako Exp $
7 VER
=`grep AC_INIT configure.in | awk -F'[(),]' '{print $3}'`
8 if [ "$1" == "-VERSION" ]
10 echo $VER |
awk -F'.' '{print $1}'
13 if [ "$1" == "-PATCHLEVEL" ]
15 echo $VER |
awk -F'.' '{print $2}'
18 if [ "$1" == "-SUBLEVEL" ]
20 echo $VER |
awk -F'.' '{print $3}'