Skip to content

Commit

Permalink
Use 7zip on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
karbassi authored Aug 4, 2021
1 parent 0b6a52a commit 921b148
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ INSTALL_DATA = $(INSTALL) -m 644

prefix = /usr/local

ifeq ($(OS), Windows_NT)
ZIP_PROGRAM=7z a -r
else
ZIP_PROGRAM=zip -r -9
endif

# ifdef check allows the user to pass custom dirs
# as per the README

Expand Down Expand Up @@ -54,7 +60,7 @@ dist: $(DISTFILES) todo.sh
chmod +x "$(DISTNAME)/todo.sh"
tar cf $(DISTNAME).tar "$(DISTNAME)"
gzip -f -9 "$(DISTNAME).tar"
zip -r -9 "$(DISTNAME).zip" "$(DISTNAME)"
$(ZIP_PROGRAM) "$(DISTNAME).zip" "$(DISTNAME)"
rm -r "$(DISTNAME)"

.PHONY: clean
Expand Down

0 comments on commit 921b148

Please sign in to comment.