diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 03:57:49 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 03:57:49 +0100 |
commit | 879e295de04bc0699462c959a1d331dcf5446345 (patch) | |
tree | 998d651a0a38b310dc396994c80d5b693d2ec225 /build-aux/travis-build.sh | |
parent | 7adc75dedf789c61ca15b0ccf239367b171be30c (diff) | |
download | blogc-879e295de04bc0699462c959a1d331dcf5446345.tar.gz blogc-879e295de04bc0699462c959a1d331dcf5446345.tar.bz2 blogc-879e295de04bc0699462c959a1d331dcf5446345.zip |
github-lambda: drop external dependencies
Diffstat (limited to 'build-aux/travis-build.sh')
-rwxr-xr-x | build-aux/travis-build.sh | 29 |
1 files changed, 23 insertions, 6 deletions
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 |