Stefan Seyfried <seife+obs@b1-systems.com>
[vpnc.git] / mk-version
blob3775bff7ade3853bcc57cf6888491c11f4c9f5a3
1 #!/bin/sh
3 # print vpnc version from file VERSION, appending the string printed
4 # by svnversion(1) if appropriate
6 _version="`cat VERSION`"
8 if [ -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`"
16 echo "$_version"
18 exit 0