diff options
author | Tharre <tharre3@gmail.com> | 2014-11-17 15:48:23 +0100 |
---|---|---|
committer | Tharre <tharre3@gmail.com> | 2014-11-17 15:48:23 +0100 |
commit | c27027cd2eeebfa63c084e746c7da46c952fb255 (patch) | |
tree | fee98369607e9adea91914fb60b05e53a20c12ce /src/redo-ifchange.c | |
parent | df9bc5b9d048c7ecb96838123e39d5bc7c23aa18 (diff) | |
download | redo-c27027cd2eeebfa63c084e746c7da46c952fb255.tar.gz redo-c27027cd2eeebfa63c084e746c7da46c952fb255.tar.xz redo-c27027cd2eeebfa63c084e746c7da46c952fb255.zip |
Merge all redo-*.c files into redo.c.
The resulting redo binary behaves differently if called with each
respective redo-* name, and is symlinked to the different command names.
This should reduce the memory footprint of a redo build, as the OS only
needs to keep one copy of the redo code in memory.
Diffstat (limited to 'src/redo-ifchange.c')
-rw-r--r-- | src/redo-ifchange.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/src/redo-ifchange.c b/src/redo-ifchange.c deleted file mode 100644 index d7b4af0..0000000 --- a/src/redo-ifchange.c +++ /dev/null @@ -1,28 +0,0 @@ -/* redo-ifchange.c - * - * Copyright (c) 2014 Tharre - * - * This software may be modified and distributed under the terms - * of the MIT license. See the LICENSE file for details. - */ - -#include <stdio.h> -#include <stdbool.h> - -#include "build.h" -#include "dbg.h" - -int main(int argc, char *argv[]) { - if (!environment_sane()) { - fprintf(stderr, "redo: environment variables are missing, " - "please use %s only in do scripts.\n", argv[0]); - exit(1); - } - - for (int i = 1; i < argc; ++i) { - update_target(argv[i], 'c'); - add_dep(argv[i], NULL, 'c'); - } - - return 0; -} |