2010-02-06 02:25:50 -05:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
if test -d "RetroShare" ; then
|
|
|
|
echo Please remove the RetroShare/ directory first.
|
|
|
|
exit
|
|
|
|
fi
|
|
|
|
|
|
|
|
packages="."
|
|
|
|
|
|
|
|
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-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-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
|
|
|
|