forked from google/snappy
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.build
More file actions
32 lines (28 loc) · 681 Bytes
/
.build
File metadata and controls
32 lines (28 loc) · 681 Bytes
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
28
29
30
31
32
#!/bin/bash
if [ -z "${BUILD_NUMBER}" ]; then
DEBNAME="${DEBNAME:-snappysnapshot}"
BUILD_NUMBER="$(date +%Y%m%d%H%M%S)"
else
DEBNAME="${DEBNAME:-snappy}"
fi
ROOT="${PWD}/debroot"
ARCH="amd64"
MINORVERSION="0.1"
VERSION="${MINORVERSION}.${BUILD_NUMBER}"
./autogen.sh
./configure --prefix=/usr
make install DESTDIR="${ROOT}"
fpm -s dir \
-t deb \
--name "${DEBNAME}" \
--force \
-C "${ROOT}" \
-a "${ARCH}" \
--version "${VERSION}" \
--after-install "build/after-install" \
.
DEB="${DEBNAME}_${VERSION}_${ARCH}.deb"
if [[ -n "${DEPLOY}" ]]; then
mv "${DEB}" "/mnt/debs/"
cp "/mnt/debs/${DEB}" /opt/reprepro-incoming-precise
fi