mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
7072ea5d92
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
79 lines
2.8 KiB
Bash
Executable File
79 lines
2.8 KiB
Bash
Executable File
#!/bin/sh
|
|
|
|
if test -d "RetroShare" ; then
|
|
echo Please remove the RetroShare/ directory first.
|
|
exit
|
|
fi
|
|
|
|
echo Getting svn revision number...
|
|
svnnumber=`svn up | cut -d\ -f3 | cut -d. -f1`
|
|
version=0.5.0."$svnnumber"
|
|
packages="."
|
|
|
|
echo SVN number is $svnnumber
|
|
echo version is $version
|
|
|
|
echo Extracting base archive...
|
|
tar zxvf $packages/BaseRetroShareDirs.tgz 2> /dev/null
|
|
|
|
echo Checking out latest snapshot in libretroshare...
|
|
# Ultimately, use the following, but
|
|
cd retroshare-0.5/src/libretroshare/
|
|
#tar zxvf ../../../libretroshare.tgz
|
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/libretroshare/src . 2> /dev/null
|
|
cd ../../..
|
|
#
|
|
echo Checking out latest snapshot in retroshare-gui...
|
|
cd retroshare-0.5/src/retroshare-gui/
|
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-gui/src . 2> /dev/null
|
|
#tar zxvf ../../../retroshare-gui.tgz
|
|
cd ../../..
|
|
#
|
|
echo Checking out latest snapshot in retroshare-nogui...
|
|
cd retroshare-0.5/src/retroshare-nogui/
|
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-nogui/src . 2> /dev/null
|
|
#tar zxvf ../../../retroshare-nogui.tgz
|
|
cd ../../..
|
|
|
|
echo Setting version numbers...
|
|
|
|
# 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
|
|
|
|
echo Cleaning...
|
|
find retroshare-0.5 -name ".svn" -exec rm -rf {} \; # remove all svn repositories
|
|
|
|
mv retroshare-0.5/src/retroshare-gui/RetroShare.pro retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
|
|
|
./cleanProFile.sh retroshare-0.5/src/libretroshare/libretroshare.pro
|
|
./cleanProFile.sh retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
|
./cleanProFile.sh retroshare-0.5/src/retroshare-nogui/retroshare-nogui.pro
|
|
|
|
echo "DESTDIR = ../../libretroshare/src/lib/" > /tmp/toto75299
|
|
cat retroshare-0.5/src/libretroshare/libretroshare.pro /tmp/toto75299 > /tmp/toto752992
|
|
cp /tmp/toto752992 retroshare-0.5/src/libretroshare/libretroshare.pro
|
|
|
|
#cat retroshare-gui-ext.pro >> retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
|
|
|
echo Building orig directory...
|
|
mkdir retroshare-0.5.orig
|
|
cp -r retroshare-0.5/src retroshare-0.5.orig
|
|
|
|
# Call debuild to make the source debian package
|
|
|
|
echo Calling debuild...
|
|
cat retroshare-0.5/debian/control | sed -e s/XXXXXX/"$version"/g > retroshare-0.5/debian/control.tmp
|
|
mv -f retroshare-0.5/debian/control.tmp retroshare-0.5/debian/control
|
|
|
|
cd retroshare-0.5
|
|
debuild -S -kC737CA98
|
|
|