tFixed makefile and add sane defaults - wendy - watch files/directories and run commands on any event
HTML git clone git://z3bra.org/wendy
DIR Log
DIR Files
DIR Refs
DIR README
DIR LICENSE
---
DIR commit 89f765ac51ddda0d47d2124b36de1de2fc793864
DIR parent b9cb39779b27020654b686de18f2114c9613752b
HTML Author: z3bra <willy@mailoo.org>
Date: Mon, 10 Feb 2014 09:58:55 +0100
Fixed makefile and add sane defaults
Diffstat:
M Makefile | 2 +-
M wendy.c | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
t@@ -14,7 +14,7 @@ RM=/bin/rm
.c.o:
@echo -e "CC $<"
- @${CC} -c $^ -o $< ${CFLAGS}
+ @${CC} -c $< -o $@ ${CFLAGS}
wendy : wendy.o
@echo -e "LD wendy"
DIR diff --git a/wendy.c b/wendy.c
t@@ -26,8 +26,8 @@
/* maximum number of event * queuing at the same time */
#define BUF_LEN (512 * (EVENT_SIZE+16))
-#define DEFAULT_FILE "/var/spool/mail/directory/new"
-#define DEFAULT_CHECK 300 /* defaults to 5 minutes */
+#define DEFAULT_FILE "." /* defaults to current directory */
+#define DEFAULT_CHECK 1 /* defaults to 1 second */
extern char **environ;