• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1#!/bin/bash
2
3set -x
4set -e
5
6PARALLEL=${PARALLEL:-1}
7TMP=$(mktemp -d /tmp/debuild.XXXXXX)
8
9function cleanup() {
10  [[ -d $TMP ]] && rm -rf $TMP
11}
12trap cleanup EXIT
13
14mkdir $TMP/bcc
15cp -a * $TMP/bcc
16pushd $TMP
17tar zcf bcc_@REVISION_LAST@.orig.tar.gz bcc/
18cd bcc
19DEB_BUILD_OPTIONS="nocheck parallel=${PARALLEL}" debuild -us -uc
20popd
21
22cp $TMP/*.deb .
23