From 8cac2c3e3a61b64b9a9855dec413239bcec7f9d2 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 27 Dec 2016 02:29:54 +0100 Subject: 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 ;) --- src/blogc-make/exec-native.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 src/blogc-make/exec-native.h (limited to 'src/blogc-make/exec-native.h') diff --git a/src/blogc-make/exec-native.h b/src/blogc-make/exec-native.h new file mode 100644 index 0000000..a83b510 --- /dev/null +++ b/src/blogc-make/exec-native.h @@ -0,0 +1,18 @@ +/* + * blogc: A blog compiler. + * Copyright (C) 2016 Rafael G. Martins + * + * This program can be distributed under the terms of the BSD License. + * See the file LICENSE. + */ + +#ifndef _MAKE_EXEC_NATIVE_H +#define _MAKE_EXEC_NATIVE_H + +#include +#include "ctx.h" + +int bm_exec_native_cp(bm_filectx_t *source, bm_filectx_t *dest, bool verbose); +int bm_exec_native_rm(bm_filectx_t *dest, bool verbose); + +#endif /* _MAKE_EXEC_NATIVE_H */ -- cgit v1.2.3-18-g5258