summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2002-07-09 07:48:30 +0000
committerJim Meyering <jim@meyering.net>2002-07-09 07:48:30 +0000
commit6b33fa2fc6987cf547301b0d2716741280abfbef (patch)
tree78f50b43b0a0e19421da39b0324233c7623879da
parent01fb2d0ba805bf46e4daea71ec294d96da8cedec (diff)
downloadcoreutils-6b33fa2fc6987cf547301b0d2716741280abfbef.tar.xz
(check-x-vs-1): cd to srcdir before running the ls.
Otherwise, it'd fail in the non-srcdir case.
-rw-r--r--man/Makefile.am2
1 files changed, 1 insertions, 1 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index 6cca59218..8e8a46719 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -136,7 +136,7 @@ check-local: check-x-vs-1
.PHONY: check-x-vs-1
check-x-vs-1:
t=ls-files.$$$$; \
- ls -1 *.x | sed 's/\.x$$//' | sort > $$t; \
+ (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | sort > $$t; \
echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | sort -u \
| diff - $$t || { rm $$t; exit 1; }; \
rm $$t