wipe: add new package

Signed-off-by: Toni Uhlig <matzeton@googlemail.com>
This commit is contained in:
Toni Uhlig
2019-09-14 09:13:26 +02:00
parent d3b32a62c2
commit 294fed0566
2 changed files with 72 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
diff --git a/Makefile b/Makefile
index 5757ae3..20d52ce 100644
--- a/Makefile
+++ b/Makefile
@@ -157,11 +157,7 @@ wipe.o : wipe.c random.h misc.h version.h
$(CC) $(CCO) $(CCOC) wipe.c -o wipe.o
version.h: always
- if which git >/dev/null 2>&1 ; then \
- git rev-list --max-count=1 HEAD | sed -e 's/^/#define WIPE_GIT "/' -e 's/$$/"/' >version.h ; \
- else \
- echo '#define WIPE_GIT "(unknown, compiled without git)"' >version.h ; \
- fi
+ echo '#define WIPE_GIT "(unknown, compiled without git)"' >version.h ; \
random.o : random.c misc.h md5.h
$(CC) $(CCO) $(CCOC) random.c -o random.o
diff --git a/wipe.c b/wipe.c
index 5a215e8..5a4f2ad 100644
--- a/wipe.c
+++ b/wipe.c
@@ -24,7 +24,7 @@
/*** defines */
-#define WIPE_VERSION "0.23"
+#define WIPE_VERSION "0.24"
#define WIPE_DATE "2016-11-03"
/* exit codes */