=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/pkg-config/pkg-config,v retrieving revision 1.6 retrieving revision 1.7 diff -c -r1.6 -r1.7 *** src/usr.bin/pkg-config/pkg-config 2006/11/28 01:36:17 1.6 --- src/usr.bin/pkg-config/pkg-config 2006/11/28 01:54:14 1.7 *************** *** 1,5 **** #!/usr/bin/perl ! # $OpenBSD: pkg-config,v 1.6 2006/11/28 01:36:17 ckuethe Exp $ #$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe --- 1,5 ---- #!/usr/bin/perl ! # $OpenBSD: pkg-config,v 1.7 2006/11/28 01:54:14 ckuethe Exp $ #$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe *************** *** 40,45 **** --- 40,48 ---- our %mode = (); our $D = 0; # debug flag + # defaults + $mode{'printerr'} = 1; + $/ = undef; if ($logfile) { open my $L, ">>" . $logfile; *************** *** 63,68 **** --- 66,72 ---- 'version' => sub { print "$version\n" ; exit(0);} , 'errors-to-stdout' => sub { $mode{'estdout'} = 1}, 'print-errors' => sub { $mode{'printerr'} = 1}, + 'silence-errors' => sub { $mode{'printerr'} = 0}, 'atleast-pkgconfig-version=s' => \$mode{'minvers'}, 'cflags' => sub { $mode{'cflags'} = 3}, *************** *** 149,155 **** push(@ARGV, split /\s+/, $privdeps) if $privdeps; } else { ! warn "can't find $p\n"; exit 1; } } --- 153,159 ---- push(@ARGV, split /\s+/, $privdeps) if $privdeps; } else { ! warn "can't find $p\n" if $mode{'printerr'}; exit 1; } }