From: Jim Meyering Date: Tue, 9 Jul 2002 07:48:30 +0000 (+0000) Subject: (check-x-vs-1): cd to srcdir before running the ls. X-Git-Tag: FILEUTILS-4_1_10~79 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6b33fa2fc6987cf547301b0d2716741280abfbef;p=thirdparty%2Fcoreutils.git (check-x-vs-1): cd to srcdir before running the ls. Otherwise, it'd fail in the non-srcdir case. --- diff --git a/man/Makefile.am b/man/Makefile.am index 6cca592181..8e8a46719d 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