updated scripts to automatically setup version numbers in the source code

git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3036 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
csoler 2010-05-30 14:23:14 +00:00
parent 926dc8d78f
commit aafcf99c36
2 changed files with 31 additions and 18 deletions

View file

@ -5,12 +5,13 @@ if test -d "RetroShare" ; then
exit
fi
echo Please enter the svn number:
read svnnumber
svnnumber=`svn up | cut -d\ -f3 | cut -d. -f1`
version=0.5.0."$svnnumber"
packages="."
echo SVN number is $svnnumber
echo version is $version
tar zxvf $packages/BaseRetroShareDirs.tgz
# Ultimately, use the following, but
@ -24,6 +25,15 @@ svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0
#tar zxvf ../../../retroshare-gui.tgz
cd ../../..
# setup version numbers
cat retroshare-0.5/src/libretroshare/util/rsversion.h | grep -v SVN_REVISION > /tmp/toto2342
echo \#define SVN_REVISION \"Revision: "$svnnumber" date : `date`\" >> /tmp/toto2342
cp /tmp/toto2342 retroshare-0.5/src/libretroshare/util/rsversion.h
cat retroshare-0.5/src/retroshare-gui/util/rsversion.h | grep -v GUI_REVISION > /tmp/toto4463
echo \#define GUI_REVISION \"Revision: "$svnnumber" date : `date`\" >> /tmp/toto4463
cp /tmp/toto4463 retroshare-0.5/src/retroshare-gui/util/rsversion.h
# Various cleaning
find retroshare-0.5 -name ".svn" -exec rm -rf {} \; # remove all svn repositories