Set tun devname to IFNAMESIZ+1 to avoid warning
[openggsn.git] / version
blobba4d6a5dd0b2fcdccb1f11bac6791a0d6ed2fa6a
1 #!/bin/sh
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" ]
9 then
10 echo $VER | awk -F'.' '{print $1}'
11 exit
13 if [ "$1" == "-PATCHLEVEL" ]
14 then
15 echo $VER | awk -F'.' '{print $2}'
16 exit
18 if [ "$1" == "-SUBLEVEL" ]
19 then
20 echo $VER | awk -F'.' '{print $3}'
21 exit
23 echo $VER
24 exit