From 5c3b6cbd63efa69d5889219a19eae12c834fb588 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Oct 2013 13:08:57 +0800 Subject: [PATCH 1/3] Rename ChangeLog to NEWS as suggested by the GNU coding standards --- ChangeLog => NEWS | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename ChangeLog => NEWS (100%) diff --git a/ChangeLog b/NEWS similarity index 100% rename from ChangeLog rename to NEWS From 3ce8e3a282546e9bc15a082f6fd437caa4dde8c3 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Oct 2013 13:09:29 +0800 Subject: [PATCH 2/3] Fix the Makefile for a number of issues --- Makefile | 18 +++++++++++++++--- gzrecover.c | 2 -- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 939947c..43166f7 100644 --- a/Makefile +++ b/Makefile @@ -1,7 +1,19 @@ +VERSION = 0.8 +CFLAGS += -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -DVERSION=\"$(VERSION)\" +LDLIBS += -lz + all: gzrecover -gzrecover: gzrecover.o - cc -Wall -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 gzrecover.c -lz -o gzrecover +gzrecover: gzrecover.c clean: - rm gzrecover + rm -f gzrecover + +dist: + rm -rf gzrt-$(VERSION) gzrt-$(VERSION).tar.gz + mkdir gzrt-$(VERSION) + cp Makefile NEWS README gzrecover.c gzrecover.1 README.build gzrt-$(VERSION) + LC_ALL=C git log --pretty --numstat --summary gzrt-$(VERSION) | git2cl > gzrt-$(VERSION)/ChangeLog + GZIP="--rsyncable --no-name" tar zcf gzrt-$(VERSION).tar.gz gzrt-$(VERSION) + gpg --detach-sign --armor gzrt-$(VERSION).tar.gz + rm -rf gzrt-$(VERSION) diff --git a/gzrecover.c b/gzrecover.c index 860d8b4..4e9e9ed 100644 --- a/gzrecover.c +++ b/gzrecover.c @@ -28,8 +28,6 @@ #include #include -#define VERSION "0.8" - /* Global contants */ #define DEFAULT_INBUF_SIZE (1024*1024) #define DEFAULT_OUTBUF_SIZE (64*1024) From ce31abe36084aec679dc0464c542336211225d72 Mon Sep 17 00:00:00 2001 From: Paul Wise Date: Tue, 8 Oct 2013 13:45:51 +0800 Subject: [PATCH 3/3] Ignore some generated files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e7c7022 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +gzrecover +gzrt-*.tar.gz +gzrt-*.tar.gz.asc