fixed version script (Patch form AC)

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5046 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2012-03-24 12:40:23 +00:00
parent c174ad913f
commit 0e1b989e08
2 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ elif ( git log -n 10 | grep svn &> /dev/null); then
fi fi
if ( svn info &> /dev/null); then if ( svn info &> /dev/null); then
version=$(svn info | head -n 5 | tail -1) version=$(svn info | grep '^Revision:')
fi fi
if [[ $version != '' ]]; then if [[ $version != '' ]]; then
version="$version date : $(date +'%T %m.%d.%y')" version="$version date : $(date +'%T %m.%d.%y')"

View File

@ -20,7 +20,7 @@ if (ls &> /dev/null); then
fi fi
if ( /usr/bin/svn info &> /dev/null); then if ( /usr/bin/svn info &> /dev/null); then
echo "Svn version : $(svn info | head -n 5 | tail -1)" >> gui/help/version.html echo "Svn version : $(svn info | grep '^Revision:')" >> gui/help/version.html
fi fi
date >> gui/help/version.html date >> gui/help/version.html
echo "" >> gui/help/version.html echo "" >> gui/help/version.html
@ -42,7 +42,7 @@ elif ( git log -n 10 | grep svn &> /dev/null); then
fi fi
if ( svn info &> /dev/null); then if ( svn info &> /dev/null); then
version=$(svn info | head -n 5 | tail -1) version=$(svn info | grep '^Revision:')
fi fi
if [[ $version != '' ]]; then if [[ $version != '' ]]; then
version="$version date : $(date +'%T %m.%d.%y')" version="$version date : $(date +'%T %m.%d.%y')"