]> Dogcows Code - chaz/tar/blob - README-alpha
Describe automake patch
[chaz/tar] / README-alpha
1 This is a test release of GNU tar.
2
3 Please send comments and problem reports to <bug-tar@gnu.org>.
4
5 This release was built with GNU automake 1.5 patched as follows:
6
7 2001-09-14 Paul Eggert <eggert@twinsun.com>
8
9 * lib/am/distdir.am (REMOVE_DISTDIR):
10 New macro. Do not change permission of non-directories.
11 (distdir, dist, dist-bzip2, dist-tarZ, dist-shar, dist-zip, dist-all,
12 distcheck): Use it.
13
14 ===================================================================
15 RCS file: lib/am/distdir.am,v
16 retrieving revision 1.5
17 retrieving revision 1.5.0.1
18 diff -pu -r1.5 -r1.5.0.1
19 --- lib/am/distdir.am 2001/07/14 20:12:52 1.5
20 +++ lib/am/distdir.am 2001/09/15 05:12:18 1.5.0.1
21 @@ -29,6 +29,11 @@ else !%?TOPDIR_P%
22 ?DISTDIR?distdir = $(top_distdir)/$(PACKAGE)-$(VERSION)
23 endif !%?TOPDIR_P%
24
25 +REMOVE_DISTDIR = \
26 + { test ! -d $(distdir) \
27 + || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
28 + && rm -fr $(distdir); }; }
29 +
30 distdir: $(DISTFILES)
31 ##
32 ## For Gnits users, this is pretty handy. Look at 15 lines
33 @@ -47,7 +52,7 @@ endif %?TOPDIR_P%
34 ## Only for the top dir.
35 ##
36 if %?TOPDIR_P%
37 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
38 + $(REMOVE_DISTDIR)
39 mkdir $(distdir)
40 endif %?TOPDIR_P%
41 ##
42 @@ -168,13 +173,13 @@ GZIP_ENV = --best
43 .PHONY: dist
44 dist: distdir
45 $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
46 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
47 + $(REMOVE_DISTDIR)
48
49 if %?BZIP2%
50 .PHONY: dist-bzip2
51 dist-bzip2: distdir
52 $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
53 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
54 + $(REMOVE_DISTDIR)
55 endif %?BZIP2%
56
57
58 @@ -182,7 +187,7 @@ if %?COMPRESS%
59 .PHONY: dist-tarZ
60 dist-tarZ: distdir
61 $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
62 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
63 + $(REMOVE_DISTDIR)
64 endif %?COMPRESS%
65
66
67 @@ -190,7 +195,7 @@ if %?SHAR%
68 .PHONY: dist-shar
69 dist-shar: distdir
70 shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
71 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
72 + $(REMOVE_DISTDIR)
73 endif %?SHAR%
74
75
76 @@ -199,7 +204,7 @@ if %?ZIP%
77 dist-zip: distdir
78 -rm -f $(distdir).zip
79 zip -rq $(distdir).zip $(distdir)
80 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
81 + $(REMOVE_DISTDIR)
82 endif %?ZIP%
83
84 endif %?TOPDIR_P%
85 @@ -223,7 +228,7 @@ dist-all: distdir
86 ?SHAR? shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
87 ?ZIP? -rm -f $(distdir).zip
88 ?ZIP? zip -rq $(distdir).zip $(distdir)
89 - -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
90 + $(REMOVE_DISTDIR)
91
92 endif %?TOPDIR_P%
93
94 @@ -239,8 +244,7 @@ if %?TOPDIR_P%
95 # tarfile.
96 .PHONY: distcheck
97 distcheck: dist
98 -## Make sure we can remove distdir before trying to remove it.
99 - -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
100 + $(REMOVE_DISTDIR)
101 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
102 ## Make the new source tree read-only. Distributions ought to work in
103 ## this case. However, make the top-level directory writable so we
104 @@ -273,7 +277,7 @@ distcheck: dist
105 && (test `find . -type f -print | wc -l` -eq 0 \
106 || (echo "Error: files left after distclean" 1>&2; \
107 exit 1) )
108 - -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
109 + $(REMOVE_DISTDIR)
110 @echo "$(distdir).tar.gz is ready for distribution" | \
111 sed 'h;s/./=/g;p;x;p;x'
112 endif %?TOPDIR_P%
This page took 0.037185 seconds and 5 git commands to generate.