8
0
Fork 0
DEPRECATED OpenGGSN repository (predecessor of OsmoGGSN, use the latter instead)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
openggsn/version

24 lines
453 B

#!/bin/sh
#
# Little shell script to grab current version number from configure.in
#
# $Id: version,v 1.3 2003/01/28 22:39:30 jjako Exp $
VER=`grep AC_INIT configure.in | awk -F'[(),]' '{print $3}'`
if [ "$1" == "-VERSION" ]
then
echo $VER | awk -F'.' '{print $1}'
exit
fi
if [ "$1" == "-PATCHLEVEL" ]
then
echo $VER | awk -F'.' '{print $2}'
exit
fi
if [ "$1" == "-SUBLEVEL" ]
then
echo $VER | awk -F'.' '{print $3}'
exit
fi
echo $VER
exit