Build in diffrent folder is a feature required by
the test suite.
This is a fixup for commit 94ac6bb
$(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
#!/bin/sh
-gettitle() {
- sed -n '/^.SH NAME/{n;p;q}' "$1"
-}
+cd $1 || exit 1
+shift
for i in *.man"$1" ; do
sed -n '