diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 02:29:54 +0100 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-12-27 02:43:59 +0100 |
commit | 8cac2c3e3a61b64b9a9855dec413239bcec7f9d2 (patch) | |
tree | 6240cdabaa0352f08d62bbfa6de7c53f5a3f1063 /build-aux | |
parent | 7bf68b0b617fb3ffa86f38fe06a49786883037f4 (diff) | |
download | blogc-8cac2c3e3a61b64b9a9855dec413239bcec7f9d2.tar.gz blogc-8cac2c3e3a61b64b9a9855dec413239bcec7f9d2.tar.bz2 blogc-8cac2c3e3a61b64b9a9855dec413239bcec7f9d2.zip |
make: implemented a build tool for blogc
so, this is basically what happens when you don't have anything better
to do in the christmas weekend. most of this code was written in the
last 2 or 3 days.
i'd like to thank the chivas brothers, the weather and my psychological
problems for this achievement.
on a serious note, this tool still needs a man page, more tests, and the
aws lambda function should be adapted to use it instead of (or together
with) make/busybox.
also, while talking about aws lambda, this tool can be nicely embedded
into the blogc binary, to produce a single "small" static binary for
usage in lambda ;)
Diffstat (limited to 'build-aux')
-rwxr-xr-x | build-aux/travis-build-github-lambda.sh | 3 | ||||
-rwxr-xr-x | build-aux/travis-build.sh | 9 | ||||
-rwxr-xr-x | build-aux/travis-deploy.sh | 2 |
3 files changed, 11 insertions, 3 deletions
diff --git a/build-aux/travis-build-github-lambda.sh b/build-aux/travis-build-github-lambda.sh index 711ed79..6a46c05 100755 --- a/build-aux/travis-build-github-lambda.sh +++ b/build-aux/travis-build-github-lambda.sh @@ -24,7 +24,8 @@ pushd build > /dev/null --disable-tests \ --disable-valgrind \ --disable-git-receiver \ - --disable-runserver + --disable-runserver \ + --enable-make-embedded popd > /dev/null make -C build LDFLAGS="-all-static" blogc diff --git a/build-aux/travis-build.sh b/build-aux/travis-build.sh index 70b2475..8725a0b 100755 --- a/build-aux/travis-build.sh +++ b/build-aux/travis-build.sh @@ -7,6 +7,12 @@ if [[ "x${TARGET}" = "xblogc-github-lambda" ]]; then exit $? fi +MAKE_CONFIGURE="--enable-make" +if [[ "x${TARGET}" = "xblogc-make-embedded" ]]; then + MAKE_CONFIGURE="--enable-make-embedded" + TARGET="check" +fi + rm -rf build mkdir -p build @@ -18,7 +24,8 @@ pushd build > /dev/null --enable-tests \ --enable-valgrind \ --enable-git-receiver \ - --enable-runserver + --enable-runserver \ + ${MAKE_CONFIGURE} popd > /dev/null make -C build "${TARGET}" diff --git a/build-aux/travis-deploy.sh b/build-aux/travis-deploy.sh index def5e9b..07248a2 100755 --- a/build-aux/travis-deploy.sh +++ b/build-aux/travis-deploy.sh @@ -12,7 +12,7 @@ if [[ "x${TRAVIS_BRANCH}" != "xmaster" ]] && [[ "x${TRAVIS_TAG}" != xv* ]]; then exit 0 fi -if [[ "x${CC}" != "xgcc" ]] || [[ "x${TARGET}" = "xvalgrind" ]]; then +if [[ "x${CC}" != "xgcc" ]] || [[ "x${TARGET}" = "xvalgrind" ]] || [[ "x${TARGET}" = "xblogc-make-embedded"; then echo "Invalid target for deploy. skipping ..." exit 0 fi |