1 eval '(exit $?0)' && eval 'exec perl -w -S $0 ${1+"$@"}'
2 & eval 'exec perl -w -S $0 $argv:q'
5 # ******************************************************************
8 # Description: A script to generate the Notify Service Monitor modules
9 # ******************************************************************
11 # ******************************************************************
13 # ******************************************************************
18 # ******************************************************************
20 # ******************************************************************
22 if (!defined $ENV{OPALORB_ROOT
}) {
23 print STDERR
"Please set the OPALORB_ROOT environment variable ",
24 "to the full path of opalORB\n";
30 for(my $i = 0; $i <= $#ARGV; $i++) {
31 if ($ARGV[$i] eq '-r') {
36 push(@includes, $ARGV[$i]);
41 for(my $i = $rm; $i <= $#ARGV; $i++) {
47 if (!defined $includes[0]) {
48 if (defined $ENV{NOTIFY_ROOT
}) {
49 push(@includes, $ENV{NOTIFY_ROOT
});
51 elsif (defined $ENV{TAO_ROOT
}) {
52 push(@includes, $ENV{TAO_ROOT
}, "$ENV{TAO_ROOT}/orbsvcs/orbsvcs");
56 if (!defined $includes[0]) {
57 print STDERR
"Please provide the full path ",
58 "to the Notify Service IDL files\n";
62 foreach my $i ('Notify/MonitorControl/NotificationServiceMC.idl',
63 'Notify/MonitorControlExt/NotifyMonitoringExt.idl') {
65 my $cmd = "$ENV{OPALORB_ROOT}/idl/idl.pl --client";
66 foreach my $include (@includes) {
67 $cmd .= " --include $include --include $include/..";
68 if (-r
"$include/$i") {
69 $cmd .= " $include/$i";