[b44b3b]: mkindex  Maximize  Restore  History

Download this file

28 lines (22 with data), 587 Bytes

# mkindex - Makes index of MIBS
# $Id$
export LC_ALL=C

echo "Creating $FILE"

echo "MIB Index" > $FILE

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

# sort contents of index files
for i in `find -L . -mindepth 1 -type f -name .index`; do
    sort -dfs -o $i $i

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

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks