From 558662574742eafabad26e43a9d7cbd396d97246 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Motiejus=20Jak=C5=A1tys?= Date: Fri, 3 May 2024 11:34:41 +0300 Subject: [PATCH] release binaries: make them identical to github 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). --- .gitignore | 2 +- Makefile | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index d8a5a7d..ad40b15 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ _debug/ _release/ -/inotify-info-v*.tar.gz +/inotify-info-*.tar.gz diff --git a/Makefile b/Makefile index 6bf0e0a..abcb2f5 100644 --- a/Makefile +++ b/Makefile @@ -72,7 +72,6 @@ else endif PROJ = $(ODIR)/$(NAME) -$(info Building $(ODIR)/$(NAME)...) ifeq ($(VERBOSE), 1) VERBOSE_PREFIX= @@ -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)))