4 [ -n "$TOPDIR" ] && cd $TOPDIR
7 [ -f version
] ||
return 1
13 [ -d .svn
] ||
return 1
14 REV
="$(svn info | awk '/^Revision:/ { print $2 }')"
20 [ -d .git
] ||
return 1
21 REV
="$(git log | grep -m 1 git-svn-id | awk '{ gsub(/.*@/, "", $2); print $2 }')"
26 try_version || try_svn || try_git || REV
="unknown"