summaryrefslogtreecommitdiffstats
path: root/build/build.sh
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:22:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2018-11-07 12:22:44 +0000
commit1e6c93250172946eeb38e94a92a1fd12c9d3011e (patch)
tree8ca5e16dfc7ad6b3bf2738ca0a48408a950f8f7e /build/build.sh
parentUpdate watch file (diff)
downloadnetdata-1e6c93250172946eeb38e94a92a1fd12c9d3011e.tar.xz
netdata-1e6c93250172946eeb38e94a92a1fd12c9d3011e.zip
Merging upstream version 1.11.0+dfsg.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'build/build.sh')
-rwxr-xr-xbuild/build.sh22
1 files changed, 22 insertions, 0 deletions
diff --git a/build/build.sh b/build/build.sh
new file mode 100755
index 000000000..ee087b98f
--- /dev/null
+++ b/build/build.sh
@@ -0,0 +1,22 @@
+#!/bin/bash
+
+if [ -f build.sh ]; then
+ cd ../ || exit 1
+fi
+
+if [ "$IS_CONTAINER" != "" ]; then
+ autoreconf -ivf
+ ./configure --enable-maintainer-mode
+ make dist
+ rm -rf autom4te.cache
+else
+ if [[ "$(docker images -q netdata-gcc-builder:latest 2> /dev/null)" == "" ]]; then
+ docker build -t netdata-gcc-builder:latest -f build/Dockerfile .
+ fi
+ docker run --rm -it \
+ --env IS_CONTAINER=TRUE \
+ --volume "${PWD}:/project:Z" \
+ --workdir "/project" \
+ netdata:gcc \
+ ./.travis/build.sh
+fi