Skip to content

Commit 63e5273

Browse files
committed
Merge branch 'rs/dist-doc-with-git-archive'
Use "git archive" more to produce the release tarball. * rs/dist-doc-with-git-archive: Makefile: remove the unused variable TAR_DIST_EXTRA_OPTS Makefile: use git init/add/commit/archive for dist-doc
2 parents 1a42a77 + 4813277 commit 63e5273

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

Makefile

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3050,9 +3050,6 @@ quick-install-html:
30503050

30513051
### Maintainer's dist rules
30523052

3053-
# Allow tweaking to hide local environment effects, like perm bits.
3054-
# With GNU tar, "--mode=u+rwX,og+rX,og-w" would be a good idea, for example.
3055-
TAR_DIST_EXTRA_OPTS =
30563053
GIT_TARNAME = git-$(GIT_VERSION)
30573054
GIT_ARCHIVE_EXTRA_FILES = \
30583055
--prefix=$(GIT_TARNAME)/ \
@@ -3102,11 +3099,15 @@ artifacts-tar:: $(ALL_COMMANDS_TO_INSTALL) $(SCRIPT_LIB) $(OTHER_PROGRAMS) \
31023099
htmldocs = git-htmldocs-$(GIT_VERSION)
31033100
manpages = git-manpages-$(GIT_VERSION)
31043101
.PHONY: dist-doc distclean
3105-
dist-doc:
3102+
dist-doc: git$X
31063103
$(RM) -r .doc-tmp-dir
31073104
mkdir .doc-tmp-dir
31083105
$(MAKE) -C Documentation WEBDOC_DEST=../.doc-tmp-dir install-webdoc
3109-
cd .doc-tmp-dir && $(TAR) cf ../$(htmldocs).tar $(TAR_DIST_EXTRA_OPTS) .
3106+
./git -C .doc-tmp-dir init
3107+
./git -C .doc-tmp-dir add .
3108+
./git -C .doc-tmp-dir commit -m htmldocs
3109+
./git -C .doc-tmp-dir archive --format=tar --prefix=./ HEAD^{tree} \
3110+
> $(htmldocs).tar
31103111
gzip -n -9 -f $(htmldocs).tar
31113112
:
31123113
$(RM) -r .doc-tmp-dir
@@ -3116,7 +3117,11 @@ dist-doc:
31163117
man5dir=../.doc-tmp-dir/man5 \
31173118
man7dir=../.doc-tmp-dir/man7 \
31183119
install
3119-
cd .doc-tmp-dir && $(TAR) cf ../$(manpages).tar $(TAR_DIST_EXTRA_OPTS) .
3120+
./git -C .doc-tmp-dir init
3121+
./git -C .doc-tmp-dir add .
3122+
./git -C .doc-tmp-dir commit -m manpages
3123+
./git -C .doc-tmp-dir archive --format=tar --prefix=./ HEAD^{tree} \
3124+
> $(manpages).tar
31203125
gzip -n -9 -f $(manpages).tar
31213126
$(RM) -r .doc-tmp-dir
31223127

0 commit comments

Comments
 (0)