blob: a3621f0c6b0c7998f0c99ccb91da336f82fb4ae4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#!/bin/sh
extract="ptroff -ms -t"
grep=egrep
in=$1
out=/dev/null
base=`echo $in | sed 's/\(.*\)\..*/\1/'`
idx=$base.idx
tmp=/tmp/$idx
cmd='^IX:'
sty = troff.ist
echo -n "Extracting index terms from $in..."
$extract $in > $out 2> $tmp
echo "done"
echo -n "Writing index terms to $idx..."
$grep $cmd $tmp > $idx
rm -f $tmp
echo "done"
makeindex -s $sty $idx
|