aboutsummaryrefslogtreecommitdiffstats
path: root/.gitattributes
diff options
context:
space:
mode:
authorJohn Thacker <johnthacker@gmail.com>2022-04-27 07:42:34 -0400
committerJohn Thacker <johnthacker@gmail.com>2022-05-06 00:13:28 +0000
commit81c67b3e05fc4229aa4a16e1c6ef379f779ca1a9 (patch)
treee8a2e4cd52991634bbe0fff08ca12fe3bead8133 /.gitattributes
parent5a48815fb46a76d6a8fc479c13f6aea9c9d94ae1 (diff)
packaging: Provide workaround for rpm-package from source tarball
Users might want to download a source tarball and build an RPM package from it. Have git-export-release.sh use git-archive's 'export-subst' feature so that it can detect whether it is being run from a git repository versus run from source extracted from a tarball produced by git-archive. In the latter case, produce a helpful console message telling the user to copy the downloaded tarball into the binary directory so that the rpm-package target can succeed. Also update the Developer's Guide to suggest this as well. We could try to create our own archive using tar, but there are several possible gotchas, such as in-source builds, excluding a build directory that is a subdirectory of the source dir, excluding unknown different build directories from previous builds, dealing with different options in different versions of tar, etc. This is good enough for the common case, and anyone who wants something more complicated can hopefully create their own tarball. Fix #15167
Diffstat (limited to '.gitattributes')
-rw-r--r--.gitattributes1
1 files changed, 1 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
index c9ca36b067..d6e99cb389 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -6,3 +6,4 @@
.gitignore export-ignore
.gitreview export-ignore
tools/make-version.pl export-subst
+packaging/source/git-export-release.sh.in export-subst