5 # Olivier BERGER <olivier.berger@it-sudparis.eu>
7 # This script will build the Debian packages to be tested
9 # Prerequisite : running 'update.sh' and its prerequisites
12 # removed as the grep test below would break otherwise
19 aptitude -y install mini-dinstall dput devscripts equivs
20 mk-build-deps -i /root/fusionforge/src/debian/control -t 'apt-get -y' -r
24 rm -rf /root/debian-repository
25 mkdir -p /root/debian-repository
27 if [ ! -f /root/.mini-dinstall.conf ]; then
28 cat >/root/.mini-dinstall.conf <<EOF
32 archivedir = /root/debian-repository
35 architectures = all, i386, source
41 mail_on_success = false
47 if [ ! -f /root/.dput.cf ]; then
48 cat > /root/.dput.cf <<EOF
52 incoming = /root/debian-repository/mini-dinstall/incoming
55 allow_unsigned_uploads = yes
56 post_upload_command = mini-dinstall -b
57 allowed_distributions = local
61 if [ ! -f /root/.devscripts ]; then
62 cat > /root/.devscripts <<EOF
64 DEBRELEASE_UPLOADER=dput
65 DEBUILD_DPKG_BUILDPACKAGE_OPTS=-i
71 cd /root/fusionforge/src
73 cp debian/changelog $f
75 # The build is likely to fail if /tmp is too short.
76 # When filesystem is too much full, the boot scripts mount a tmpfs /tmp that is far too small to allow builds,
77 # but still gets unnoticed.
78 # We assume here that you didn't change the VM partitions layout and that /tmp is not a mounted partition.
81 echo "WARNING: It is likely that the mounted /tmp could be too short. If you experience a build error bellow, Try make some room on the FS and reboot, first."
84 dch --newversion 999+$(date +%Y%m%d%H%M%S)-1 --distribution local --force-distribution "Autobuilt."
85 debuild --no-lintian --no-tgz-check -us -uc -tc # using -tc so 'bzr st' is readable
88 mv $f debian/changelog