1 krisbash 1.1 #!/bin/bash
2
3 echo Starting Traces Generator
4 echo gentraces.sh FILE or SYSLOG or NOOP
5
6 if [ $1="FILE" ]; then
7 echo Generating traces for File Logging
8 output/bin/oigenc $1 base/oi_traces.h base/oiomi.h
9 exit 0
10 fi
11
12 if [ $1="SYSLOG" ]; then
13 echo Generating traces for Syslog
14 output/bin/oigenc $1 base/oi_traces.h OMI LOG_NDELAY LOG_LOCAL1 base/oiomi.h
15 exit 0
16 fi
17
18 if [ $1="NOOP" ]; then
19 echo Generating no traces at all
20 output/bin/oigenc $1 base/oi_traces.h base/oiomi.h
21 exit 0
22 krisbash 1.1 fi
23
24 if [ -z $1 ]; then
25 echo Defaulting to FILE mode
26 output/bin/oigenc FILE base/oi_traces.h base/oiomi.h
27 exit 0
28 fi
|