RetroShare/build_scripts/Ubuntu_src/make.sh
2010-10-28 19:50:53 +00:00

28 lines
929 B
Bash
Executable File

#!/bin/sh
echo This script will
echo - remove the directory retroshare-0.5/
echo - remove existing sources packages in the current directory
echo - build a new source package from the svn
echo - rebuild the source package for the karmic i386 arch.
echo
echo attempting to get svn revision number...
svn=`svn info | grep 'Revision:' | cut -d\ -f2`
echo Revision number is $svn.
echo Type ^C to abort, or enter to continue
read tmp
# rm -rf ./retroshare-0.5
# ./clean.sh
# ./makeSourcePackage.sh
for dist in lucid karmic; do
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist "$dist" amd64 build *.dsc
cp /var/cache/pbuilder/"$dist"_result/retroshare_0.5-1_amd64.deb ./RetroShare_0.5.1."$svn"_"$dist"_amd64.deb
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist "$dist" i386 build *.dsc
cp /var/cache/pbuilder/"$dist"-i386_result/retroshare_0.5-1_i386.deb ./RetroShare_0.5.1."$svn"_"$dist"_i386.deb
done