From: Philipp Takacs Date: Tue, 6 Sep 2016 23:14:42 +0000 (+0200) Subject: fix build in a diffrent folder X-Git-Tag: mmh-0.4~64 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=31617c81857c7a0079ea21ebd1d7f01abaee9271;p=mmh 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 --- 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 '