Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

executable file 29 lines (24 sloc) 0.543 kB
#!/bin/sh
# Be compatible here, use `` and such old stuff
VERSION=`cat RELEASE`
if ls -d .svn > /dev/null 2>&1; then
INFO_CMD="svn info"
elif ls -d .git > /dev/null 2>&1; then
if which git-svn > /dev/null 2>&1; then
INFO_CMD="git-svn info"
else
INFO_CMD="git svn info"
fi
else
INFO_CMD="echo Revision: <UNKNOWN>"
fi
case $VERSION in
svn-*)
R=`$INFO_CMD | awk '/^Revision: / { print $2; }'` || {
echo Unable to get svn revision >&2
exit 1
}
VERSION="$VERSION-r$R"
;;
esac
echo $VERSION
Jump to Line
Something went wrong with that request. Please try again.