Busybox: Upgrade to 1.21.1 (stable). lsof active.
[tomato.git] / release / src / router / pptpd / version
blob9020996894b193a1da889c5846287753d08864dc
1 #!/bin/sh
3 # Grab current version number from configure.in and emit on stdout
5 # $Id: version,v 1.1.1.1 2002/06/21 08:52:02 fenix_nl Exp $
7 VER=`grep AM_INIT_AUTOMAKE configure.in | awk -F'[(),]' '{print $3}'`
9 if [ "$1" == "-VERSION" ]
10 then
11 echo $VER | awk -F'.' '{print $1}'
12 exit
15 if [ "$1" == "-PATCHLEVEL" ]
16 then
17 echo $VER | awk -F'.' '{print $2}'
18 exit
21 if [ "$1" == "-SUBLEVEL" ]
22 then
23 echo $VER | awk -F'.' '{print $3}'
24 exit
27 echo $VER
28 exit