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