summaryrefslogtreecommitdiff
path: root/tests/ls-2
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-01-16 23:33:48 +0000
committerJim Meyering <jim@meyering.net>2002-01-16 23:33:48 +0000
commit96400fcda4088971714b0f7407a0163bb81c9dfe (patch)
treefdaaf005a39d26eb0428951544c53ead3f985cdf /tests/ls-2
parent4ff8979277f58bd3c72c848a03b9dbe44f3d5e12 (diff)
downloadcoreutils-96400fcda4088971714b0f7407a0163bb81c9dfe.tar.xz
.
Diffstat (limited to 'tests/ls-2')
-rw-r--r--tests/ls-2/Makefile.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/tests/ls-2/Makefile.in b/tests/ls-2/Makefile.in
index eff3799d6..a37dd3032 100644
--- a/tests/ls-2/Makefile.in
+++ b/tests/ls-2/Makefile.in
@@ -208,10 +208,13 @@ distdir: $(DISTFILES)
if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
if test "$$dir" != "$$file" && test "$$dir" != "."; then \
- $(mkinstalldirs) "$(distdir)/$$dir"; \
+ dir="/$$dir"; \
+ $(mkinstalldirs) "$(distdir)$$dir"; \
+ else \
+ dir=''; \
fi; \
if test -d $$d/$$file; then \
- cp -pR $$d/$$file $(distdir) \
+ cp -pR $$d/$$file $(distdir)$$dir \
|| exit 1; \
else \
test -f $(distdir)/$$file \