Created
February 21, 2015 00:09
-
-
Save nbrownus/862bb745936c5255a037 to your computer and use it in GitHub Desktop.
Builds a deb of bbcp
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
#!/bin/sh | |
VERSION="1.0.0" | |
BUILD="betable1" | |
set -e -x | |
DIRNAME="$(cd "$(dirname "$0")" && pwd)" | |
OLDESTPWD="$PWD" | |
cd "$(mktemp -d)" | |
#trap "rm -rf \"$PWD\"" EXIT INT QUIT TERM | |
curl -O "http://www.slac.stanford.edu/~abh/bbcp/bbcp.tgz" | |
tar xf "bbcp.tgz" | |
cd "bbcp/src" | |
make | |
cd "../" | |
mkdir -p "$PWD/rootfs/usr/local/bin" | |
mv "$PWD/bin/amd64_linux/bbcp" "$PWD/rootfs/usr/local/bin/" | |
fakeroot fpm -C "$PWD/rootfs" \ | |
-m "Nate Brown <[email protected]>" \ | |
-n "bbcp" -v "$VERSION-$BUILD" \ | |
-p "$OLDESTPWD/bbcp_${VERSION}-${BUILD}_amd64.deb" \ | |
-s "dir" -t "deb" \ | |
"usr" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment