~ubuntu-branches/debian/sid/automake1.10/sid

« back to all changes in this revision

Viewing changes to lib/am/distdir.am

  • Committer: Bazaar Package Importer
  • Author(s): Eric Dorland
  • Date: 2010-02-22 00:26:17 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20100222002617-d4bep05o23z7mgb9
Tags: 1:1.10.3-1
* New upstream release. Contains fix for CVE-2009-4029, which created
  world-writable directories in distribution tarballs.
* debian/source/format, debian/source/options,
  debian/source/patch-header: Convert to v3 quilt format, with
  single-debian-patch.
* debian/lintian.overrides, debian/automake1.10.lintian-overrides:
  Rename overrides file to use new dh_lintian helper.
* debian/rules, debian/control, debian/compat: Convert to a dh style
  rules file, change debhelper dependency and compat file to match.
* debian/watch: Make watch file only check for 1.10 versions.

Show diffs side-by-side

added added

removed removed

Lines of Context:
47
47
endif  %?CK-NEWS%
48
48
endif %?TOPDIR_P%
49
49
##
 
50
## `missing help2man' may have created some bogus man pages.  Ensure they
 
51
## are not distributed.
 
52
##
 
53
if %?INSTALL-MAN%
 
54
if %?HAVE-MANS%
 
55
        @list='$(MANS)'; if test -n "$$list"; then \
 
56
          list=`for p in $$list; do \
 
57
            if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
 
58
## Note that we check existing man pages here only.  If there are man pages
 
59
## which are not distributed, and may be generated only conditionally, then
 
60
## we should not error out because of them.  This could be refined to take
 
61
## into account only dist_*_MANS, but then we'd be missing out on those
 
62
## the user distributes with EXTRA_DIST.
 
63
            if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
 
64
          if test -n "$$list" && \
 
65
            grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
 
66
            echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
 
67
            grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/         /' >&2; \
 
68
            echo "       to fix them, install help2man, remove and regenerate the man pages;" >&2; \
 
69
            echo "       typically \`make maintainer-clean' will remove them" >&2; \
 
70
            exit 1; \
 
71
          else :; fi; \
 
72
        else :; fi
 
73
endif %?HAVE-MANS%
 
74
endif %?INSTALL-MAN%
 
75
##
50
76
## Only for the top dir.
51
77
##
52
78
if %?TOPDIR_P%
196
222
endif %?DIST-TARGETS%
197
223
##
198
224
## This complex find command will try to avoid changing the modes of
199
 
## links into the source tree, in case they're hard-linked.  It will
200
 
## also make directories writable by everybody, because some
201
 
## brain-dead tar implementations change ownership and permissions of
202
 
## a directory before extracting the files, thus becoming unable to
203
 
## extract them.
 
225
## links into the source tree, in case they're hard-linked.
204
226
##
205
227
## Ignore return result from chmod, because it might give an error
206
228
## if we chmod a symlink.
213
235
## the file in place in the source tree.
214
236
##
215
237
if %?TOPDIR_P%
216
 
        -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
 
238
        -find "$(distdir)" -type d ! -perm -755 \
 
239
                -exec chmod u+rwx,go+rx {} \; -o \
217
240
          ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
218
241
          ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
219
242
          ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
348
371
## to allow DESTDIR installations.  Otherwise "$(DESTDIR)$(prefix)" would
349
372
## expand to "c:/temp/am-dc-5668/c:/src/package/package-1.0/_inst".
350
373
        dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
351
 
## We will attemp a DESTDIR install in $dc_destdir.  We don't
 
374
## We will attempt a DESTDIR install in $dc_destdir.  We don't
352
375
## create this directory under $dc_install_base, because it would
353
376
## create very long directory names.
354
377
          && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \