We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
gitea-src-VERSION
1 parent 15e2f2e commit 0e73b2bCopy full SHA for 0e73b2b
Makefile
@@ -646,7 +646,9 @@ release-sources: | $(DIST_DIRS)
646
echo $(VERSION) > $(STORED_VERSION_FILE)
647
# bsdtar needs a ^ to prevent matching subdirectories
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 .
+# 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 .
652
rm -f $(STORED_VERSION_FILE)
653
654
.PHONY: release-docs
0 commit comments