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