diff options
Diffstat (limited to 'source4/build')
-rwxr-xr-x | source4/build/pidl/pidl.pl | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/source4/build/pidl/pidl.pl b/source4/build/pidl/pidl.pl index ab7b826349..7eb684e706 100755 --- a/source4/build/pidl/pidl.pl +++ b/source4/build/pidl/pidl.pl @@ -145,6 +145,12 @@ sub process_file($) my($eparserhdr) = dirname($output) . "/packet-dcerpc-$basename.h"; IdlEParser::RewriteHeader($pidl, $header, $eparserhdr); } + if ($opt_swig) { + my($filename) = $output; + $filename =~ s/\/ndr_/\//; + $filename = util::ChangeExtension($filename, ".i"); + IdlSwig::RewriteHeader($pidl, $header, $filename); + } } if ($opt_client) { @@ -210,12 +216,6 @@ $dcom my($eparser) = dirname($output) . "/packet-dcerpc-$basename.c"; IdlEParser::RewriteC($pidl, $parser, $eparser); } - if ($opt_swig) { - my($filename) = $output; - $filename =~ s/\/ndr_/\//; - $filename = util::ChangeExtension($filename, ".i"); - util::FileSave($filename, IdlSwig::Parse($pidl)); - } } if ($opt_diff) { |