mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-04 09:05:34 -05:00
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:
parent
cfcd773d6e
commit
e5cd917645
@ -9,5 +9,6 @@
|
||||
|
||||
std::string RsUtil::retroshareVersion()
|
||||
{
|
||||
return std::string(LIB_VERSION);
|
||||
return std::string(LIB_VERSION) + " " + std::string(SVN_REVISION);
|
||||
|
||||
}
|
||||
|
@ -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();
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user