Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add some cleanups #6

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
gzrecover
gzrt-*.tar.gz
gzrt-*.tar.gz.asc
18 changes: 15 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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)
File renamed without changes.
2 changes: 0 additions & 2 deletions gzrecover.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
#include <string.h>
#include <zlib.h>

#define VERSION "0.8"

/* Global contants */
#define DEFAULT_INBUF_SIZE (1024*1024)
#define DEFAULT_OUTBUF_SIZE (64*1024)
Expand Down