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