ratcatcher/getsvnrev.sh

9 lines
168 B
Bash
Executable File

#!/bin/sh
#svn info | grep Revision | cut -d " " -f 2
VER=`svnversion . 2>/dev/null`
if [ $? -ne 0 ]; then
echo "1"
else
echo $VER | cut -d: -f2 | sed -e 's/M//g'
fi