From 6b522228e900de3de822be199c5d36c2643db59e Mon Sep 17 00:00:00 2001 From: Dave Vandervies Date: Fri, 8 Jun 2018 19:59:43 -0400 Subject: [PATCH 1/5] Makefile --- Makefile | 1 + 1 file changed, 1 insertion(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..6915f38 --- /dev/null +++ b/Makefile @@ -0,0 +1 @@ +all: dpu undpu From 7c9877448d9533dafa5b2daefef4e34328dc2a90 Mon Sep 17 00:00:00 2001 From: Dave Vandervies Date: Fri, 8 Jun 2018 20:00:13 -0400 Subject: [PATCH 2/5] fix permissions --- Progect Goals | 0 dpu.c | 0 undpu.c | 0 3 files changed, 0 insertions(+), 0 deletions(-) mode change 100755 => 100644 Progect Goals mode change 100755 => 100644 dpu.c mode change 100755 => 100644 undpu.c diff --git a/Progect Goals b/Progect Goals old mode 100755 new mode 100644 diff --git a/dpu.c b/dpu.c old mode 100755 new mode 100644 diff --git a/undpu.c b/undpu.c old mode 100755 new mode 100644 From 5378281a3e85b956b0f1120376ba450629f1b70c Mon Sep 17 00:00:00 2001 From: Dave Vandervies Date: Fri, 8 Jun 2018 20:00:35 -0400 Subject: [PATCH 3/5] Fix spelling in filename --- Progect Goals => Project Goals | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename Progect Goals => Project Goals (100%) diff --git a/Progect Goals b/Project Goals similarity index 100% rename from Progect Goals rename to Project Goals From 336ecb7e8a0a9e2153cdbab6ecb43ab7f644a9d5 Mon Sep 17 00:00:00 2001 From: Dave Vandervies Date: Fri, 8 Jun 2018 20:01:26 -0400 Subject: [PATCH 4/5] install rule --- Makefile | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile b/Makefile index 6915f38..addb784 100644 --- a/Makefile +++ b/Makefile @@ -1 +1,4 @@ all: dpu undpu + +install: dpu undpu + cp dpu undpu /usr/local/bin/ From de254452c5c6464f4175b73e5b199f5f039e2a4a Mon Sep 17 00:00:00 2001 From: Dave Vandervies Date: Fri, 8 Jun 2018 20:02:31 -0400 Subject: [PATCH 5/5] update README --- README.md | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index e9b24f0..648574d 100644 --- a/README.md +++ b/README.md @@ -3,20 +3,16 @@ doubleplusunzip The Worlds First File Inflater -Installation is simple, I don't feel the need for a makefile, but if you've no idea how to compile, just run: - -cc -o dpu ./dpu.c -cc -o undpu ./undpu.c +To build: +`make` OR if you want to *install* it you can run: - -cc -o /usr/local/bin/dpu ./dpu.c -cc -o /usr/local/bin/undpu ./undpu.c +`make install` My further work will to be to properly use getopt (like not a chump), and also to create a proper useage() Right now, just use: -dpu [decompression size] filename +`dpu [decompression size] filename` The decompression size is an optional argument, and when used it will multiply the filesize by that. The default amount is 10 (making a file 10 times bigger).