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