fixed build with bundled OpenSSL
[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 NxSubAgentRegister_$sa(NETXMS_SUBAGENT_INFO **, Config *);"
16 done
17
18 cat << EOT
19 }
20
21 void InitStaticSubagents()
22 {
23 EOT
24
25 for sa in $LIST; do
26 echo " InitSubAgent(NULL, \"static:$sa\", NxSubAgentRegister_$sa, \"NxSubAgentRegister_$sa\");"
27 done
28
29 echo "}"
30
31 exit 0