mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-06 13:24:16 -04:00
updated ubuntu src packages build script
git-svn-id: http://svn.code.sf.net/p/retroshare/code/branches/v0.5.0@2546 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
2f242db979
commit
c876c3d459
3 changed files with 18 additions and 28 deletions
Binary file not shown.
|
@ -6,13 +6,22 @@ echo - remove existing sources packages in the current directory
|
||||||
echo - build a new source package from the svn
|
echo - build a new source package from the svn
|
||||||
echo - rebuild the source package for the karmic i386 arch.
|
echo - rebuild the source package for the karmic i386 arch.
|
||||||
echo
|
echo
|
||||||
echo Type ^C to abort, or \[ENTER\] to continue
|
echo Type ^C to abort, or enter the svn version number to continue
|
||||||
read tmp
|
read svn
|
||||||
|
|
||||||
rm -rf ./retroshare-0.5
|
# rm -rf ./retroshare-0.5
|
||||||
./clean.sh
|
# ./clean.sh
|
||||||
./makeSourcePackage.sh
|
# ./makeSourcePackage.sh
|
||||||
|
|
||||||
sudo pbuilder build *.dsc
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist karmic build *.dsc
|
||||||
|
cp /var/cache/pbuilder/karmic_result/retroshare_0.5-1_amd64.deb ./RetroShare_0.5."$svn"_karmic_amd64.deb
|
||||||
|
|
||||||
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist karmic i386 build *.dsc
|
||||||
|
cp /var/cache/pbuilder/karmic-i386_result/retroshare_0.5-1_i386.deb ./RetroShare_0.5."$svn"_karmic_i386.deb
|
||||||
|
|
||||||
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist jaunty build *.dsc
|
||||||
|
cp /var/cache/pbuilder/jaunty_result/retroshare_0.5-1_amd64.deb ./RetroShare_0.5."$svn"_jaunty_amd64.deb
|
||||||
|
|
||||||
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist jaunty i386 build *.dsc
|
||||||
|
cp /var/cache/pbuilder/jaunty-i386_result/retroshare_0.5-1_i386.deb ./RetroShare_0.5."$svn"_jaunty_i386.deb
|
||||||
|
|
||||||
cp /var/cache/pbuilder/result/retroshare_0.5-1_i386.deb .
|
|
||||||
|
|
|
@ -5,44 +5,25 @@ if test -d "RetroShare" ; then
|
||||||
exit
|
exit
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
###################### PARAMETERS ####################
|
|
||||||
version="0.5-alpha1"
|
|
||||||
######################################################
|
|
||||||
|
|
||||||
echo attempting to get svn revision number...
|
|
||||||
svn=`svn info | grep 'Revision:' | cut -d\ -f2`
|
|
||||||
echo done.
|
|
||||||
version="$version"."$svn"
|
|
||||||
echo got version number $version. Is this correct ?
|
|
||||||
read tmp
|
|
||||||
|
|
||||||
packages="."
|
packages="."
|
||||||
|
|
||||||
tar zxvf $packages/BaseRetroShareDirs.tgz
|
tar zxvf $packages/BaseRetroShareDirs.tgz
|
||||||
|
|
||||||
echo Setting up version numbers...
|
|
||||||
cat retroshare-0.5/debian/control | sed -e s/XXXXXX/"$version"/g | sed -e s/YYYYYY/"$arch"/g | sed -e s/ZZZZZZ/"$packager"/g > retroshare-0.5/debian/control.tmp
|
|
||||||
mv retroshare-0.5/debian/control.tmp retroshare-0.5/debian/control
|
|
||||||
|
|
||||||
echo Getting svn sources
|
|
||||||
# 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/trunk/libretroshare/src .
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/libretroshare/src .
|
||||||
cd ../../..
|
cd ../../..
|
||||||
#
|
#
|
||||||
cd retroshare-0.5/src/retroshare-gui/
|
cd retroshare-0.5/src/retroshare-gui/
|
||||||
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/trunk/retroshare-gui/src .
|
svn co https://retroshare.svn.sourceforge.net/svnroot/retroshare/branches/v0.5.0/retroshare-gui/src .
|
||||||
#tar zxvf ../../../retroshare-gui.tgz
|
#tar zxvf ../../../retroshare-gui.tgz
|
||||||
cd ../../..
|
cd ../../..
|
||||||
|
|
||||||
# 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
|
||||||
|
|
||||||
echo Preparing package
|
|
||||||
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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue