forked from iovisor/bcc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add debian builder script that is versioned
* This script can be run by buildbot to generate the debian files e.g.: PARALLEL=4 scripts/build-deb.sh Signed-off-by: Brenden Blanco <[email protected]>
- Loading branch information
Brenden Blanco
committed
Sep 2, 2015
1 parent
4a36a54
commit c234344
Showing
3 changed files
with
45 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
PARALLEL=${PARALLEL:-1} | ||
TMP=$(mktemp -d /tmp/debuild.XXXXXX) | ||
|
||
function cleanup() { | ||
[[ -d $TMP ]] && rm -rf $TMP | ||
} | ||
trap cleanup EXIT | ||
|
||
mkdir $TMP/bcc | ||
cp -a * $TMP/bcc | ||
pushd $TMP | ||
tar zcf bcc_0.1.6.orig.tar.gz bcc/ | ||
cd bcc | ||
DEB_BUILD_OPTIONS="nocheck parallel=${PARALLEL}" debuild -us -uc | ||
popd | ||
|
||
cp $TMP/*.deb . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
|
||
set -x | ||
set -e | ||
|
||
PARALLEL=${PARALLEL:-1} | ||
TMP=$(mktemp -d /tmp/debuild.XXXXXX) | ||
|
||
function cleanup() { | ||
[[ -d $TMP ]] && rm -rf $TMP | ||
} | ||
trap cleanup EXIT | ||
|
||
mkdir $TMP/bcc | ||
cp -a * $TMP/bcc | ||
pushd $TMP | ||
tar zcf bcc_@[email protected] bcc/ | ||
cd bcc | ||
DEB_BUILD_OPTIONS="nocheck parallel=${PARALLEL}" debuild -us -uc | ||
popd | ||
|
||
cp $TMP/*.deb . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters