Skip to content

Commit

Permalink
release binaries: make them identical to github
Browse files Browse the repository at this point in the history
Github generated `inotify-info-0.0.1.tar.gz`, even though tag name was
`v.0.0.1`. This change makes them equivalent (byte-by-byte identical).
  • Loading branch information
motiejus committed May 3, 2024
1 parent fb3f87f commit 5586625
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
_debug/
_release/

/inotify-info-v*.tar.gz
/inotify-info-*.tar.gz
5 changes: 2 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ else
endif

PROJ = $(ODIR)/$(NAME)
$(info Building $(ODIR)/$(NAME)...)

ifeq ($(VERBOSE), 1)
VERBOSE_PREFIX=
Expand Down Expand Up @@ -112,6 +111,6 @@ clean:

define RELEASE_RULES
inotify-info-$(TAG).tar.gz:
git archive --prefix=inotify-info-$(TAG)/ $(TAG) | gzip -n > $$@
git archive --prefix=inotify-info-$(TAG)/ v$(TAG) | gzip -n > $$@
endef
$(foreach TAG,$(shell git tag 2>/dev/null),$(eval $(RELEASE_RULES)))
$(foreach TAG,$(shell git tag | sed -n '/^v/ s/^v//p' 2>/dev/null),$(eval $(RELEASE_RULES)))

0 comments on commit 5586625

Please sign in to comment.