--- Makefile.in~ 2004-06-10 16:26:10.000000000 -0700 +++ Makefile.in 2004-06-10 16:25:32.000000000 -0700 @@ -128,17 +128,18 @@ doc/quilt.1: doc/quilt.1.in $(QUILT:%=quilt/%) @echo "quilt.1.in -> quilt.1" - @while read line; do \ + @dir=$(CURDIR); \ + while read line; do \ case "$$line" in \ '@REFERENCE''@') \ for cmd in $(sort $(QUILT:%=quilt/%)) ; do \ - (bash -c ". scripts/patchfns ; LC_ALL=C . $$cmd -h")| \ + (bash -c ". scripts/patchfns ; LC_ALL=C . $$dir/$$cmd -h")| \ sed -e 's/Usage: quilt //' \ -e 's/^\([^ ]*\)/\\fB\1\\fP/' \ -e 's/^/.IP "/' -e 's/$$/ " 4/' | \ head -n 1; \ echo ; \ - (bash -c ". scripts/patchfns ; LC_ALL=C . $$cmd -h")| \ + (bash -c ". scripts/patchfns ; LC_ALL=C . $$dir/$$cmd -h")| \ grep -v 'Usage: quilt' | \ sed -e 's/^\t//' \ -e 's/\t/\n/' | \