summaryrefslogtreecommitdiff
path: root/pptpd-1.3.3/version
diff options
context:
space:
mode:
authorxeb <xeb@mail.ru>2009-06-17 00:56:34 +0400
committerxeb <xeb@mail.ru>2009-06-17 00:56:34 +0400
commitdf2441c834cf341d9b969dacc2dd8dac07cd588e (patch)
treeca0c7d8bade520ac35f5cd5c34dec54b136bd491 /pptpd-1.3.3/version
downloadaccel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.tar.gz
accel-ppp-df2441c834cf341d9b969dacc2dd8dac07cd588e.zip
initial import
Diffstat (limited to 'pptpd-1.3.3/version')
-rwxr-xr-xpptpd-1.3.3/version28
1 files changed, 28 insertions, 0 deletions
diff --git a/pptpd-1.3.3/version b/pptpd-1.3.3/version
new file mode 100755
index 0000000..9020996
--- /dev/null
+++ b/pptpd-1.3.3/version
@@ -0,0 +1,28 @@
+#!/bin/sh
+#
+# Grab current version number from configure.in and emit on stdout
+#
+# $Id: version,v 1.1.1.1 2002/06/21 08:52:02 fenix_nl Exp $
+
+VER=`grep AM_INIT_AUTOMAKE 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