From 69bd9b1d600debf7b758cc7f8353b747430259b4 Mon Sep 17 00:00:00 2001 From: Ludovic Courtès Date: Tue, 10 Apr 2012 17:59:50 +0200 Subject: dist: Remove redundant "./" for top-level $(DISTFILES) * Makeconf (dist.tar): When $(dir) is ".", avoid adding "./" to the resulting file name. --- Makeconf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makeconf b/Makeconf index c658a149..c72287a5 100644 --- a/Makeconf +++ b/Makeconf @@ -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 -- cgit v1.2.3