1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27
|
#!/bin/bash
#
# builds package
#
echo "== STAGE 04 (building package) =="
set -eux
source /root/source/buildinfo
echo "Build flags: ${flags}"
cd /root/source/build
# TODO: also store stderr?
dpkg-buildpackage ${flags} | tee /root/source/build.log
cd /root/source
name=$(basename --suffix .dsc *.dsc)
mv build.log ${name}.build
echo "+++ lintian output +++"
lintian --pedantic --display-info *.changes
echo "+++ end of lintian output +++"
echo "== ENDSTAGE =="
|