added SVN_REVISION to rsversion to not overwrite LIB_VERSION

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@1894 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
defnax 2009-12-16 21:54:46 +00:00
parent cfcd773d6e
commit e5cd917645
3 changed files with 9 additions and 3 deletions

View File

@ -9,5 +9,6 @@
std::string RsUtil::retroshareVersion()
{
return std::string(LIB_VERSION);
return std::string(LIB_VERSION) + " " + std::string(SVN_REVISION);
}

View File

@ -7,10 +7,15 @@
#include <string>
#define LIB_VERSION "0.5.x"
#define LIB_VERSION "0.5.0"
#define SVN_REVISION ""
namespace RsUtil {
std::string retroshareVersion();
}

View File

@ -23,7 +23,7 @@ fi
if [[ $version != '' ]]; then
version="$version date : $(date +'%T %m.%d.%y')"
echo "Writing version to util/rsversion.h : $version "
sed -i "s/LIB_VERSION .*/LIB_VERSION \"$version\"/g" util/rsversion.h
sed -i "s/SVN_REVISION .*/SVN_REVISION \"$version\"/g" util/rsversion.h
fi
echo "script version_detail.sh finished normally"
exit 0