blob: 4d5ccc46d8facd60c9348aecc249df7bbfd6ec51 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
eval '(exit $?0)' && eval 'exec perl -S $0 ${1+"$@"}'
& eval 'exec perl -S $0 $argv:q'
if 0;
# -*- perl -*-
$found = 0 ;
open (I_FILE, "Hello_Component_exec.cpp") ;
while( <I_FILE> ){
chomp ;
if( $_ =~ /sendc/ ){
$found = 1 ;
last ;
}
}
if( $found == 1 ){
print STDERR "ERROR: Found sendc in generated code\n";
$status = 1 ;
} else {
print STDERR "Generated code ok\n";
}
exit $status;
|