2010-02-14 07:37:16 -05:00
|
|
|
#!/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
|
|
|
|
|
2010-10-05 06:54:00 -04:00
|
|
|
echo attempting to get svn revision number...
|
|
|
|
svn=`svn info | grep 'Revision:' | cut -d\ -f2`
|
2010-10-28 15:50:53 -04:00
|
|
|
echo Revision number is $svn.
|
2010-02-14 07:37:16 -05:00
|
|
|
|
2010-10-05 06:54:00 -04:00
|
|
|
echo Type ^C to abort, or enter to continue
|
2010-10-28 15:50:53 -04:00
|
|
|
read tmp
|
2010-10-05 06:54:00 -04:00
|
|
|
|
2011-04-16 15:18:52 -04:00
|
|
|
svn=4153
|
2011-02-22 15:58:05 -05:00
|
|
|
rm -rf ./retroshare-0.5
|
2010-10-05 06:54:00 -04:00
|
|
|
# ./makeSourcePackage.sh
|
|
|
|
|
2011-02-22 15:58:05 -05:00
|
|
|
for dist in jaunty karmic lucid maverick; do
|
2011-04-09 16:08:37 -04:00
|
|
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist "$dist" build retroshare_0.5.1-0."$svn"~"$dist".dsc
|
|
|
|
cp /var/cache/pbuilder/"$dist"_result/retroshare_0.5.1-0."$svn"~"$dist"_amd64.deb .
|
|
|
|
sudo PBUILDFOLDER=/var/cache/pbuilder pbuilder-dist "$dist" i386 build retroshare_0.5.1-0."$svn"~"$dist".dsc
|
|
|
|
cp /var/cache/pbuilder/"$dist"-i386_result/retroshare_0.5.1-0."$svn"~"$dist"_i386.deb .
|
2010-10-05 06:54:00 -04:00
|
|
|
done
|
2010-02-14 07:37:16 -05:00
|
|
|
|