README-alpha 3.4 KB

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