2010-02-06 02:25:50 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test -d "RetroShare" ; then
|
|
|
|
echo Please remove the RetroShare/ directory first.
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
2010-05-30 10:23:14 -04:00
|
|
|
svnnumber=`svn up | cut -d\ -f3 | cut -d. -f1`
|
2010-05-29 08:35:29 -04:00
|
|
|
version=0.5.0."$svnnumber"
|
2010-02-06 02:25:50 -05:00
|
|
|
packages="."
|
|
|
|
|
2010-05-30 10:23:14 -04:00
|
|
|
echo SVN number is $svnnumber
|
|
|
|
echo version is $version
|
|
|
|
|
2010-02-06 02:25:50 -05:00
|
|
|
tar zxvf $packages/BaseRetroShareDirs.tgz
|
|
|
|
|
2010-02-06 17:26:30 -05:00
|
|
|
# Ultimately, use the following, but
|
2010-02-06 02:25:50 -05:00
|
|
|
cd retroshare-0.5/src/libretroshare/
|
2010-02-12 11:50:57 -05:00
|
|
|
#tar zxvf ../../../libretroshare.tgz
|
2010-03-15 09:18:25 -04:00
|
|
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/libretroshare/src .
|
2010-02-06 02:25:50 -05:00
|
|
|
cd ../../..
|
2010-02-06 17:26:30 -05:00
|
|
|
#
|
2010-02-06 02:25:50 -05:00
|
|
|
cd retroshare-0.5/src/retroshare-gui/
|
2010-03-15 09:18:25 -04:00
|
|
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-gui/src .
|
2010-02-12 11:50:57 -05:00
|
|
|
#tar zxvf ../../../retroshare-gui.tgz
|
2010-02-06 02:25:50 -05:00
|
|
|
cd ../../..
|
|
|
|
|
2010-05-30 10:23:14 -04:00
|
|
|
# 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
|
|
|
|
|
2010-02-06 17:26:30 -05:00
|
|
|
# Various 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
|
|
|
|
|
|
|
|
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
|
|
|
|
|
2010-02-12 11:50:57 -05:00
|
|
|
#cat retroshare-gui-ext.pro >> retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
2010-02-07 13:07:00 -05:00
|
|
|
|
2010-02-06 17:26:30 -05:00
|
|
|
mkdir retroshare-0.5.orig
|
|
|
|
cp -r retroshare-0.5/src retroshare-0.5.orig
|
|
|
|
|
|
|
|
# Call debuild to make the source debian package
|
|
|
|
|
2010-05-29 08:35:29 -04:00
|
|
|
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
|
|
|
|
|
2010-02-06 02:25:50 -05:00
|
|
|
cd retroshare-0.5
|
2010-02-06 17:26:30 -05:00
|
|
|
debuild -S -kC737CA98
|
2010-02-06 02:25:50 -05:00
|
|
|
|