mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-02-01 10:05:10 -05:00
final debian package tweak
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@3230 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
44cfc288c5
commit
7072ea5d92
@ -1,5 +1,7 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
echo Getting svn revision...
|
||||||
|
echo
|
||||||
svn=`svn up | cut -d\ -f3 | cut -d. -f1`
|
svn=`svn up | cut -d\ -f3 | cut -d. -f1`
|
||||||
|
|
||||||
echo This script will
|
echo This script will
|
||||||
@ -10,10 +12,12 @@ echo - rebuild the source package for the karmic i386 arch.
|
|||||||
echo - svn number is $svn. Is this correct ?
|
echo - svn number is $svn. Is this correct ?
|
||||||
echo
|
echo
|
||||||
echo Type ^C to abort, or type enter to proceed.
|
echo Type ^C to abort, or type enter to proceed.
|
||||||
|
read tmp
|
||||||
|
|
||||||
rm -rf ./retroshare-0.5
|
echo cleaning...
|
||||||
./clean.sh
|
rm -rf ./retroshare-0.5 2> /dev/null
|
||||||
./makeSourcePackage.sh
|
#./clean.sh >& /dev/null
|
||||||
|
#./makeSourcePackage.sh
|
||||||
|
|
||||||
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist lucid i386 build *.dsc
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist lucid i386 build *.dsc
|
||||||
cp /var/cache/pbuilder/lucid-i386_result/retroshare_0.5-1_i386.deb ./RetroShare_0.5."$svn"_lucid_i386.deb
|
cp /var/cache/pbuilder/lucid-i386_result/retroshare_0.5-1_i386.deb ./RetroShare_0.5."$svn"_lucid_i386.deb
|
||||||
|
@ -5,6 +5,7 @@ if test -d "RetroShare" ; then
|
|||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
echo Getting svn revision number...
|
||||||
svnnumber=`svn up | cut -d\ -f3 | cut -d. -f1`
|
svnnumber=`svn up | cut -d\ -f3 | cut -d. -f1`
|
||||||
version=0.5.0."$svnnumber"
|
version=0.5.0."$svnnumber"
|
||||||
packages="."
|
packages="."
|
||||||
@ -12,24 +13,29 @@ packages="."
|
|||||||
echo SVN number is $svnnumber
|
echo SVN number is $svnnumber
|
||||||
echo version is $version
|
echo version is $version
|
||||||
|
|
||||||
tar zxvf $packages/BaseRetroShareDirs.tgz
|
echo Extracting base archive...
|
||||||
|
tar zxvf $packages/BaseRetroShareDirs.tgz 2> /dev/null
|
||||||
|
|
||||||
|
echo Checking out latest snapshot in libretroshare...
|
||||||
# Ultimately, use the following, but
|
# Ultimately, use the following, but
|
||||||
cd retroshare-0.5/src/libretroshare/
|
cd retroshare-0.5/src/libretroshare/
|
||||||
#tar zxvf ../../../libretroshare.tgz
|
#tar zxvf ../../../libretroshare.tgz
|
||||||
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/libretroshare/src .
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/libretroshare/src . 2> /dev/null
|
||||||
cd ../../..
|
cd ../../..
|
||||||
#
|
#
|
||||||
|
echo Checking out latest snapshot in retroshare-gui...
|
||||||
cd retroshare-0.5/src/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 .
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-gui/src . 2> /dev/null
|
||||||
#tar zxvf ../../../retroshare-gui.tgz
|
#tar zxvf ../../../retroshare-gui.tgz
|
||||||
cd ../../..
|
cd ../../..
|
||||||
#
|
#
|
||||||
|
echo Checking out latest snapshot in retroshare-nogui...
|
||||||
cd retroshare-0.5/src/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 .
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-nogui/src . 2> /dev/null
|
||||||
#tar zxvf ../../../retroshare-gui.tgz
|
#tar zxvf ../../../retroshare-nogui.tgz
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
|
echo Setting version numbers...
|
||||||
|
|
||||||
# setup version numbers
|
# setup version numbers
|
||||||
cat retroshare-0.5/src/libretroshare/util/rsversion.h | grep -v SVN_REVISION > /tmp/toto2342
|
cat retroshare-0.5/src/libretroshare/util/rsversion.h | grep -v SVN_REVISION > /tmp/toto2342
|
||||||
@ -42,13 +48,14 @@ cp /tmp/toto4463 retroshare-0.5/src/retroshare-gui/util/rsversion.h
|
|||||||
|
|
||||||
# Various cleaning
|
# Various cleaning
|
||||||
|
|
||||||
|
echo Cleaning...
|
||||||
find retroshare-0.5 -name ".svn" -exec rm -rf {} \; # remove all svn repositories
|
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
|
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/libretroshare/libretroshare.pro
|
||||||
./cleanProFile.sh retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
./cleanProFile.sh retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
||||||
./cleanProFile.sh retroshare-0.5/src/retroshare-gui/retroshare-nogui.pro
|
./cleanProFile.sh retroshare-0.5/src/retroshare-nogui/retroshare-nogui.pro
|
||||||
|
|
||||||
echo "DESTDIR = ../../libretroshare/src/lib/" > /tmp/toto75299
|
echo "DESTDIR = ../../libretroshare/src/lib/" > /tmp/toto75299
|
||||||
cat retroshare-0.5/src/libretroshare/libretroshare.pro /tmp/toto75299 > /tmp/toto752992
|
cat retroshare-0.5/src/libretroshare/libretroshare.pro /tmp/toto75299 > /tmp/toto752992
|
||||||
@ -56,11 +63,13 @@ cp /tmp/toto752992 retroshare-0.5/src/libretroshare/libretroshare.pro
|
|||||||
|
|
||||||
#cat retroshare-gui-ext.pro >> retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
#cat retroshare-gui-ext.pro >> retroshare-0.5/src/retroshare-gui/retroshare-gui.pro
|
||||||
|
|
||||||
|
echo Building orig directory...
|
||||||
mkdir retroshare-0.5.orig
|
mkdir retroshare-0.5.orig
|
||||||
cp -r retroshare-0.5/src retroshare-0.5.orig
|
cp -r retroshare-0.5/src retroshare-0.5.orig
|
||||||
|
|
||||||
# Call debuild to make the source debian package
|
# 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
|
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
|
mv -f retroshare-0.5/debian/control.tmp retroshare-0.5/debian/control
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user