cf/make-proto.pl: make JSON:PP optional
Signed-off-by: Stefan Metzmacher <metze@samba.org>
This commit is contained in:

committed by
Nico Williams

parent
ad23636db8
commit
13d3bcf1d0
@@ -4,8 +4,6 @@
|
|||||||
use Getopt::Std;
|
use Getopt::Std;
|
||||||
use File::Compare;
|
use File::Compare;
|
||||||
|
|
||||||
use JSON::PP
|
|
||||||
|
|
||||||
my $comment = 0;
|
my $comment = 0;
|
||||||
my $doxygen = 0;
|
my $doxygen = 0;
|
||||||
my $funcdoc = 0;
|
my $funcdoc = 0;
|
||||||
@@ -67,6 +65,8 @@ if($opt_m) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if($opt_x) {
|
if($opt_x) {
|
||||||
|
require JSON::PP;
|
||||||
|
|
||||||
my $EXP;
|
my $EXP;
|
||||||
local $/;
|
local $/;
|
||||||
open(EXP, '<', $opt_x) || die "open ${opt_x}";
|
open(EXP, '<', $opt_x) || die "open ${opt_x}";
|
||||||
|
Reference in New Issue
Block a user