Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit41fd969

Browse files
committed
Back-patch creation of tar.bz2 tarball during "make dist".
Since commita4d03bb, "make dist" hasbuilt both gzip- and bzip2-compressed tarballs. However, this waspretty useless, because our tarball build script didn't know about itand proceeded to overwrite the bz2 file with new data. Back-patch thechange to all active branches, so that creation of the tar.bz2 filecan be removed from the build script.
1 parent457c2d9 commit41fd969

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

‎GNUmakefile.in

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ distdir:= postgresql-$(VERSION)
6767
dummy:= =install=
6868
garbage := =* "#"* ."#"* *~* *.orig *.rej core postgresql-*
6969

70-
dist: $(distdir).tar.gz
70+
dist: $(distdir).tar.gz$(distdir).tar.bz2
7171
ifeq ($(split-dist), yes)
7272
dist: postgresql-base-$(VERSION).tar.gz postgresql-docs-$(VERSION).tar.gz postgresql-opt-$(VERSION).tar.gz postgresql-test-$(VERSION).tar.gz
7373
endif
@@ -77,6 +77,8 @@ dist:
7777
$(distdir).tar: distdir
7878
$(TAR) chf $@ $(distdir)
7979

80+
.INTERMEDIATE: $(distdir).tar
81+
8082
opt_files := \
8183
src/tools src/tutorial \
8284
$(addprefix src/pl/, plperl plpython tcl)
@@ -115,10 +117,10 @@ distdir:
115117
$(MAKE) -C $(distdir) distclean
116118
rm -f $(distdir)/README.git
117119

118-
distcheck:$(distdir).tar.gz
120+
distcheck:dist
119121
-rm -rf $(dummy)
120122
mkdir $(dummy)
121-
$(GZIP) -d -c $< | $(TAR) xf -
123+
$(GZIP) -d -c $(distdir).tar.gz | $(TAR) xf -
122124
install_prefix=`cd $(dummy) && pwd`; \
123125
cd $(distdir) \
124126
&& ./configure --prefix="$$install_prefix"

‎src/Makefile.global.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -441,10 +441,10 @@ TAS = @TAS@
441441
# Global targets and rules
442442

443443
%.gz:%
444-
$(GZIP) -f --best$<
444+
$(GZIP) --best-c$<>$@
445445

446446
%.bz2:%
447-
$(BZIP2) -f$<
447+
$(BZIP2) -c$<>$@
448448

449449
ifeq ($(PORTNAME),win32)
450450
# Build rules to add versioninfo resources to win32 binaries

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp