Fix project saved/loaded completion when there is stateless client
[ladish.git] / svnversion.sh
blobf538ddd140c6303ffefd2e8d627169e1cda56511
1 #!/bin/sh
3 if test $# -eq 1
4 then
5 DIR=${1}
6 else
7 DIR=.
8 fi
10 if test -d ${DIR}/.svn
11 then
12 pushd ${DIR} > /dev/null
13 svnversion
14 popd > /dev/null
15 else
16 sed 's/^#define SVN_VERSION "\(.*\)"$/\1/' ${DIR}/svnversion.h