diff options
-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 |