#!/bin/sh
# mkindex - Makes index of MIBS
# $Id: mkindex,v 1.1.1.1 2004/11/01 16:55:31 maxbaker Exp $
FILE=mib_index.txt

echo "Creating $FILE"

echo "MIB Index" > $FILE

# refresh index files
for d in `find . -mindepth 1 -type d -not -name CVS`; do
    snmptranslate -M$d sysName > /dev/null 2>&1
done

# Add contents of each .index to our index
for f in `find . -name .index`; do
    echo "" >> $FILE
    echo $f >> $FILE
    cat $f >> $FILE
    echo "" >> $FILE
done
