aboutsummaryrefslogtreecommitdiffstats
path: root/src/blogc-make/exec.h
diff options
context:
space:
mode:
authorRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-27 23:12:13 +0100
committerRafael G. Martins <rafael@rafaelmartins.eng.br>2017-02-27 23:17:02 +0100
commit7c24a0a338a4bfe57690d586f59c9dc40ecd01ed (patch)
tree27fe390995b8335255067f7287243fb58a0e28a6 /src/blogc-make/exec.h
parent4850ccea251fe5e0f0c458f9bd6574d8b8d034c0 (diff)
downloadblogc-7c24a0a338a4bfe57690d586f59c9dc40ecd01ed.tar.gz
blogc-7c24a0a338a4bfe57690d586f59c9dc40ecd01ed.tar.bz2
blogc-7c24a0a338a4bfe57690d586f59c9dc40ecd01ed.zip
make: improved binary lookup logic.
now it is possible to run blogc-make from git checkout without installing and without setting $PATH. It will also always try to load the binary from the same dir as blogc-make, that is likely the same version
Diffstat (limited to 'src/blogc-make/exec.h')
-rw-r--r--src/blogc-make/exec.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/blogc-make/exec.h b/src/blogc-make/exec.h
index 5bb37d0..901e53d 100644
--- a/src/blogc-make/exec.h
+++ b/src/blogc-make/exec.h
@@ -15,6 +15,7 @@
#include "ctx.h"
#include "settings.h"
+char* bm_exec_find_binary(const char *bin, const char *env);
int bm_exec_command(const char *cmd, const char *input, char **output,
char **error, bc_error_t **err);
char* bm_exec_build_blogc_cmd(bm_settings_t *settings, bc_trie_t *variables,