1#!/bin/sh
2
3# print vpnc version from file VERSION, appending the string printed
4# by svnversion(1) if appropriate
5
6_version="`cat VERSION`"
7
8if [ -d .svn ]; then
9		if command -v svnversion >/dev/null; then
10				_version="$_version-`svnversion`"
11		else
12				_version="$_version-`sed -n '/^dir$/{n;p;q;}' .svn/entries`"
13		fi
14fi
15
16echo "$_version"
17
18exit 0
19