From e01918e7a31de8404890fa23d80790d85feacc85 Mon Sep 17 00:00:00 2001 From: Avery Pennarun Date: Sat, 3 Oct 2009 21:49:43 -0400 Subject: [PATCH] Rename hsplit/hjoin to hashsplit/hashjoin. --- .gitignore | 3 +++ Makefile | 23 +++++++++++++---------- hjoin.sh => hashjoin.sh | 0 hsplit.c => hashsplit.c | 0 4 files changed, 16 insertions(+), 10 deletions(-) rename hjoin.sh => hashjoin.sh (100%) rename hsplit.c => hashsplit.c (100%) diff --git a/.gitignore b/.gitignore index 163f783..bd5c389 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,8 @@ hsplit hjoin +hashsplit +hashjoin *.o *~ tags[12] +out[12] diff --git a/Makefile b/Makefile index 72733b3..6c62c9b 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,21 @@ CFLAGS=-Wall -g -Werror -all: hsplit +default: all -hsplit: hsplit.o +all: hashsplit hashjoin -hjoin: hjoin.sh +hashsplit: hashsplit.o -test: hsplit hjoin - ./hsplit tags1 - ./hsplit tags2 - diff -u -U50 tags1 tags2 || true +hashjoin: hashjoin.sh + +test: hashsplit hashjoin + ./hashsplit tags1 + ./hashsplit tags2 + diff -u tags1 tags2 || true wc -c testfile1 testfile2 wc -l tags1 tags2 - ./hjoin out1 - ./hjoin out2 + ./hashjoin out1 + ./hashjoin out2 diff -u testfile1 out1 diff -u testfile2 out2 @@ -28,4 +30,5 @@ test: hsplit hjoin gcc -c -o $@ $^ $(CPPFLAGS) $(CFLAGS) clean: - rm -f *.o *~ hsplit hjoin + rm -f *.o *~ hashsplit hashjoin hsplit hjoin \ + out[12] tags[12] .*~ diff --git a/hjoin.sh b/hashjoin.sh similarity index 100% rename from hjoin.sh rename to hashjoin.sh diff --git a/hsplit.c b/hashsplit.c similarity index 100% rename from hsplit.c rename to hashsplit.c -- 2.39.5