aboutsummaryrefslogtreecommitdiffstats
path: root/src/redo-ifchange.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/redo-ifchange.c')
-rw-r--r--src/redo-ifchange.c32
1 files changed, 16 insertions, 16 deletions
diff --git a/src/redo-ifchange.c b/src/redo-ifchange.c
index 75bd984..cfc017b 100644
--- a/src/redo-ifchange.c
+++ b/src/redo-ifchange.c
@@ -13,22 +13,22 @@
#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);
- }
+ 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) {
- /*debug("Testing if %s is up-to-date ...\n", argv[i]);*/
- if (has_changed(argv[i], 'c', false)) {
- /*printf("=> no\n");*/
- build_target(argv[i]);
- } else {
- /*printf("=> yes\n");*/
- }
- add_dep(argv[i], NULL, 'c');
- }
+ for (int i = 1; i < argc; ++i) {
+ /*debug("Testing if %s is up-to-date ...\n", argv[i]);*/
+ if (has_changed(argv[i], 'c', false)) {
+ /*printf("=> no\n");*/
+ build_target(argv[i]);
+ } else {
+ /*printf("=> yes\n");*/
+ }
+ add_dep(argv[i], NULL, 'c');
+ }
- return 0;
+ return 0;
}