(file) Return to gentraces.sh CVS log (file) (dir) Up to [OMI] / omi

File: [OMI] / omi / gentraces.sh (download) / (as text)
Revision: 1.1, Mon Apr 20 17:19:49 2015 UTC (9 years ago) by krisbash
Branch: MAIN
CVS Tags: OMI_1_0_8_2, OMI_1_0_8_1, HEAD
OMI 1.0.8-1

#!/bin/bash

echo Starting Traces Generator
echo gentraces.sh FILE or SYSLOG or NOOP

if [ $1="FILE" ]; then
        echo Generating traces for File Logging
        output/bin/oigenc $1 base/oi_traces.h base/oiomi.h
        exit 0
fi

if [ $1="SYSLOG" ]; then
        echo Generating traces for Syslog
        output/bin/oigenc $1 base/oi_traces.h OMI LOG_NDELAY LOG_LOCAL1 base/oiomi.h
        exit 0
fi

if [ $1="NOOP" ]; then
        echo Generating no traces at all
        output/bin/oigenc $1 base/oi_traces.h base/oiomi.h
        exit 0
fi

if [ -z $1 ]; then
        echo Defaulting to FILE mode
        output/bin/oigenc FILE base/oi_traces.h base/oiomi.h
        exit 0
fi

ViewCVS 0.9.2