rename the project to corewatcher
authorArjan van de Ven <arjan@linux.intel.com>
Sat, 17 Jan 2009 14:43:59 +0000 (16:43 +0200)
committerArjan van de Ven <arjan@linux.intel.com>
Sat, 17 Jan 2009 14:43:59 +0000 (16:43 +0200)
.gitignore
Makefile
corewatcher.c [moved from extract_core.c with 99% similarity]

index 9a70368..7410723 100644 (file)
@@ -1,4 +1,6 @@
 *~
 DEADJOE
 extract_oops
-core*
+core.*
+corewatcher
+
index 4b67301..5d5ca0e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,11 @@
-all: extract_core
+all: corewatcher
 
 CFLAGS = -O2 -g -Wall -W -D_FORTIFY_SOURCE=2 -fstack-protector
 
-extract_core: extract_core.o find_file.o coredumper.h Makefile
-       gcc $(CFLAGS) extract_core.o find_file.o -o extract_core
+LIBS = corewatcher.o find_file.o
+corewatcher: $(LIBS) coredumper.h Makefile
+       gcc $(CFLAGS) $(LIBS) -o extract_core
        
 clean:
-       rm -f *.o extract_core DEADJOE
+       rm -f *.o extract_core DEADJOE corewatches
        
\ No newline at end of file
similarity index 99%
rename from extract_core.c
rename to corewatcher.c
index d29382d..af630d0 100644 (file)
@@ -82,6 +82,7 @@ void process_corefile(char *filename)
                return;
 
        printf("-%s-\n", ptr);
+       unlink(filename);
 
        free(ptr);
 }