From 879e295de04bc0699462c959a1d331dcf5446345 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 27 Dec 2016 03:57:49 +0100 Subject: github-lambda: drop external dependencies --- build-aux/travis-build-github-lambda.sh | 42 --------------------------------- build-aux/travis-build.sh | 29 ++++++++++++++++++----- 2 files changed, 23 insertions(+), 48 deletions(-) delete mode 100755 build-aux/travis-build-github-lambda.sh (limited to 'build-aux') diff --git a/build-aux/travis-build-github-lambda.sh b/build-aux/travis-build-github-lambda.sh deleted file mode 100755 index 6a46c05..0000000 --- a/build-aux/travis-build-github-lambda.sh +++ /dev/null @@ -1,42 +0,0 @@ -#!/bin/bash - -set -ex - -PV_DEPS=2 - -PN_DEPS="blogc-lambda-deps" -P_DEPS="${PN_DEPS}-${PV_DEPS}" -A_DEPS="${P_DEPS}.tar.xz" -SRC_DEPS="https://travis-distfiles.rgm.io/${PN_DEPS}/${P_DEPS}/${P_DEPS}.tar.xz" - -rm -rf root build -mkdir -p root build - -wget -c "${SRC_DEPS}" "${SRC_DEPS}.sha512" -sha512sum -c "${A_DEPS}.sha512" -tar -xvf "${A_DEPS}" -C root/ - -pushd build > /dev/null -../configure \ - CFLAGS="-Wall -g -O0" \ - --disable-ronn \ - --disable-silent-rules \ - --disable-tests \ - --disable-valgrind \ - --disable-git-receiver \ - --disable-runserver \ - --enable-make-embedded -popd > /dev/null - -make -C build LDFLAGS="-all-static" blogc - -PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)" - -install -m 755 build/blogc root/bin/blogc -install -m 644 src/blogc-github-lambda/lambda_function.py root/lambda_function.py -install -m 644 LICENSE root/licenses/blogc -strip root/bin/blogc - -pushd root/ > /dev/null -zip --symlinks -rq "../blogc-github-lambda-${PV}.zip" * -popd > /dev/null diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index 8725a0b..223d145 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -2,16 +2,15 @@ set -ex -if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then - build-aux/travis-build-github-lambda.sh - exit $? -fi - MAKE_CONFIGURE="--enable-make" if [[ "x${TARGET}" = "xblogc-make-embedded" ]]; then MAKE_CONFIGURE="--enable-make-embedded" TARGET="check" fi +if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then + MAKE_CONFIGURE="--enable-make-embedded" +fi + rm -rf build mkdir -p build @@ -28,4 +27,22 @@ pushd build > /dev/null ${MAKE_CONFIGURE} popd > /dev/null -make -C build "${TARGET}" +if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then + make -C build LDFLAGS="-all-static" blogc + + rm -rf root + mkdir -p root + + PV="$(grep PACKAGE_VERSION build/config.h | cut -d\" -f2)" + + install -m 755 build/blogc root/blogc + install -m 644 src/blogc-github-lambda/lambda_function.py root/lambda_function.py + install -m 644 LICENSE root/LICENSE + strip root/blogc + + pushd root/ > /dev/null + zip --symlinks -rq "../blogc-github-lambda-${PV}.zip" * + popd > /dev/null +else + make -C build "${TARGET}" +fi -- cgit v1.2.3-18-g5258