now it's like HP-UX-ready ;p
[public/netxms.git] / tools / create_ssa_list.sh
CommitLineData
e8636669
VK
1#!/bin/sh
2
3TIMESTAMP=`date`
4LIST=`echo $1 | tr a-z A-Z`
5
6echo "/* static_subagents.cpp Generated at $TIMESTAMP */"
7cat << EOT
8#include <nxagentd.h>
9
10extern "C"
11{
12EOT
13
14for sa in $LIST; do
15 echo " BOOL NxSubAgentInit_$sa(NETXMS_SUBAGENT_INFO **, TCHAR *);"
16done
17
18cat << EOT
19}
20
21void InitStaticSubagents(void)
22{
23EOT
24
25for sa in $LIST; do
9d31840b 26 echo " InitSubAgent(NULL, \"static:$sa\", NxSubAgentInit_$sa, \"NxSubAgentInit_$sa\");"
e8636669
VK
27done
28
29echo "}"
30
31exit 0