File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -646,7 +646,9 @@ release-sources: | $(DIST_DIRS)
646
646
echo $(VERSION ) > $(STORED_VERSION_FILE )
647
647
# bsdtar needs a ^ to prevent matching subdirectories
648
648
$(eval EXCL := --exclude=$(shell tar --help | grep -q bsdtar && echo "^")./)
649
- tar $(addprefix $(EXCL),$(TAR_EXCLUDES)) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
649
+ # use transform to a add a release-folder prefix; in bsdtar the transform parameter equivalent is -s
650
+ $(eval TRANSFORM := $(shell tar --help | grep -q bsdtar && echo "-s '/^./gitea-src-$(VERSION)/'" || echo "--transform 's|^./|gitea-src-$(VERSION)/|'"))
651
+ tar $(addprefix $(EXCL),$(TAR_EXCLUDES)) $(TRANSFORM) -czf $(DIST)/release/gitea-src-$(VERSION).tar.gz .
650
652
rm -f $(STORED_VERSION_FILE)
651
653
652
654
.PHONY : release-docs
You can’t perform that action at this time.
0 commit comments