diff --git a/Makefile b/Makefile index d8c8cee..a7aa168 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,6 @@ VERSION := $(shell perl -ne '/VERSION\s*=\s*'"'(.*)'"'/ and print "$$1"' commit-patch) -BIN = commit-patch commit-partial +BIN = commit-patch commit-partial commit-patch.fat MAN = commit-patch.1 commit-partial.1 ELISP = commit-patch-buffer.el DOC = commit-patch.html README COPYING Changes @@ -8,6 +8,10 @@ ALL = $(BIN) $(MAN) $(ELISP) $(DOC) all: $(ALL) +commit-patch.fat: commit-patch + carton exec fatpack pack $< > $@ + chmod +x $@ + commit-partial: ln -s commit-patch commit-partial @@ -25,6 +29,7 @@ release: commit-patch-$(VERSION).tar.gz commit-patch-$(VERSION).tar.gz: $(ALL) Makefile mkdir commit-patch-$(VERSION) rsync -a $^ commit-patch-$(VERSION) + mv -f commit-patch-$(VERSION)/commit-patch.fat commit-patch-$(VERSION)/commit-patch tar czf commit-patch-$(VERSION).tar.gz commit-patch-$(VERSION) rm -rf commit-patch-$(VERSION) diff --git a/README b/README index 1a1b396..c620df3 100644 --- a/README +++ b/README @@ -6,7 +6,6 @@ PREREQUISITES commit-patch relies on several programs to get the job done: perl - - IPC::Run - patch - interdiff - cp - Ideally installed on your system already. :-) diff --git a/cpanfile b/cpanfile new file mode 100644 index 0000000..480f713 --- /dev/null +++ b/cpanfile @@ -0,0 +1,3 @@ +# -*- perl -*- +requires 'IPC::Run'; +requires 'App::FatPacker';