home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Fresh Fonts 1
/
freshfonts1.bin
/
programs
/
amiga
/
pastex
/
archives
/
makeindex2_11.lha
/
makeindex2.11
/
troff
/
makeind
< prev
next >
Wrap
Text File
|
1989-08-31
|
361b
|
24 lines
#!/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