From 0e1b989e0822cc091b6dd59ae5823802e782429d Mon Sep 17 00:00:00 2001 From: csoler Date: Sat, 24 Mar 2012 12:40:23 +0000 Subject: [PATCH] fixed version script (Patch form AC) git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5046 b45a01b8-16f6-495d-af2f-9b41ad6348cc --- libretroshare/src/version_detail.sh | 2 +- retroshare-gui/src/version_detail.sh | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libretroshare/src/version_detail.sh b/libretroshare/src/version_detail.sh index 03da58d67..26a6a29b6 100755 --- a/libretroshare/src/version_detail.sh +++ b/libretroshare/src/version_detail.sh @@ -18,7 +18,7 @@ elif ( git log -n 10 | grep svn &> /dev/null); then fi if ( svn info &> /dev/null); then - version=$(svn info | head -n 5 | tail -1) + version=$(svn info | grep '^Revision:') fi if [[ $version != '' ]]; then version="$version date : $(date +'%T %m.%d.%y')" diff --git a/retroshare-gui/src/version_detail.sh b/retroshare-gui/src/version_detail.sh index 0023bb6bf..86df6822e 100755 --- a/retroshare-gui/src/version_detail.sh +++ b/retroshare-gui/src/version_detail.sh @@ -20,7 +20,7 @@ if (ls &> /dev/null); then fi 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 date >> gui/help/version.html echo "" >> gui/help/version.html @@ -42,7 +42,7 @@ elif ( git log -n 10 | grep svn &> /dev/null); then fi if ( svn info &> /dev/null); then - version=$(svn info | head -n 5 | tail -1) + version=$(svn info | grep '^Revision:') fi if [[ $version != '' ]]; then version="$version date : $(date +'%T %m.%d.%y')"