File: pbuilder-test-distributions.sh

package info (click to toggle)
yade 2025.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 33,308 kB
  • sloc: cpp: 93,298; python: 50,409; sh: 577; makefile: 162
file content (20 lines) | stat: -rw-r--r-- 885 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#
# grab latest trunk, try building packages for various distributions
# see https://yade-dem.org/wiki/DebianPackages for configuration of the pbuilder environment
#
set -x
TMP=/tmp/pbuild-yade-$$
mkdir $TMP
cd $TMP
bzr checkout --lightweight lp:yade trunk
cd trunk; scripts/debian-prep jaunty; cd .. # distro not important here
dpkg-source -b -I trunk
DSC=yade-`cat trunk/VERSION`_1.dsc
for DIST in lenny squeeze hardy jaunty karmic; do
	echo ============================================= TESTING $DIST ===================================
	echo ===============================================================================================
	BASETGZ=/var/cache/pbuilder/$DIST.tgz
	sudo pbuilder --build --basetgz $BASETGZ --debbuildopts "-j5 -Zlzma" $DSC  || FAILED="$FAILED $DIST"
done
rm -rf $TMP
if [ '$FAILED' ]; then echo "***************** Build failed for $FAILED"; exit 1; fi