diff options
author | Ludovic Courtès <ludo@gnu.org> | 2012-04-10 17:59:50 +0200 |
---|---|---|
committer | Ludovic Courtès <ludo@gnu.org> | 2012-04-10 17:59:50 +0200 |
commit | 69bd9b1d600debf7b758cc7f8353b747430259b4 (patch) | |
tree | 85417c05d0646b12b3aebf62ea36bb39fbc7d8e2 | |
parent | 76c738d53b1ade45bb82a68aff692ab277fa0442 (diff) |
dist: Remove redundant "./" for top-level $(DISTFILES)
* Makeconf (dist.tar): When $(dir) is ".", avoid adding "./" to the
resulting file name.
-rw-r--r-- | Makeconf | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -448,8 +448,9 @@ dist.tar: $(DISTFILES) FORCE # the source directory, but that must not affect the name it gets in dist.tar. for f in $(DISTFILES); do \ if test -e "$$f"; then d=.; else d=$(srcdir); fi && \ + if test "$(dir)" = "."; then subdir=""; else subdir="$(dir)/"; fi && \ tar --append -f $@ --owner=0 --group=0 \ - --transform=s%^%$(dist-version)/$(dir)/% -C "$$d" "$$f" \ + --transform="s%^%$(dist-version)/$$subdir%" -C "$$d" "$$f" \ || exit $$?; \ done |