From 31617c81857c7a0079ea21ebd1d7f01abaee9271 Mon Sep 17 00:00:00 2001 From: Philipp Takacs Date: Wed, 7 Sep 2016 01:14:42 +0200 Subject: [PATCH] fix build in a diffrent folder Build in diffrent folder is a feature required by the test suite. This is a fixup for commit 94ac6bb --- man/Makefile.in | 8 ++++---- man/gettitles.sh | 5 ++--- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/man/Makefile.in b/man/Makefile.in index adb0e89..abfcd41 100644 --- a/man/Makefile.in +++ b/man/Makefile.in @@ -77,10 +77,10 @@ mh-chart.man7: $(ALLPROGS) $(srcdir)/mh-chart-gen.sh $(ALLPROGS) >$@ titles: - $(srcdir)/gettitles.sh 1 >titles1.temp - $(srcdir)/gettitles.sh 5 >titles5.temp - $(srcdir)/gettitles.sh 7 >titles7.temp - $(srcdir)/gettitles.sh 8 >titles8.temp + $(srcdir)/gettitles.sh $(srcdir) 1 >titles1.temp + $(srcdir)/gettitles.sh $(srcdir) 5 >titles5.temp + $(srcdir)/gettitles.sh $(srcdir) 7 >titles7.temp + $(srcdir)/gettitles.sh $(srcdir) 8 >titles8.temp $(MAN1) $(MAN5) $(MAN7) $(MAN8): man.sed diff --git a/man/gettitles.sh b/man/gettitles.sh index 6585edd..deb0c0a 100755 --- a/man/gettitles.sh +++ b/man/gettitles.sh @@ -1,8 +1,7 @@ #!/bin/sh -gettitle() { - sed -n '/^.SH NAME/{n;p;q}' "$1" -} +cd $1 || exit 1 +shift for i in *.man"$1" ; do sed -n ' -- 1.7.10.4