make catmans (from krb4's fix-export)

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10025 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-06-08 20:33:49 +00:00
parent f307a23c57
commit 6bc4281bd9

View File

@@ -23,6 +23,21 @@ autoreconf --force --install
automake lib/roken/Makefile ## stupid automake gets this wrong
(cd doc; makeinfo heimdal.texi)
find . -name Makefile.am | while read f; do
for i in `sed -n -e '/^man_MANS/{
:loop
p
/[^\\]$/tquit
tloop
}
:quit' $f | sed 's/man_MANS//;s/=//;s/[ \\][ \\]*/ /g'`; do
x=`dirname $f`/$i
y=`dirname $f`/`echo $i | sed 's/[0-9]$/cat&/'`
echo `grog -Tascii $x` \> $y
`grog -Tascii $x` > $y
done
done
make_proto () {
(top=`pwd`
cd $1