diff options
author | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-10 19:15:56 +0000 |
---|---|---|
committer | Jasper Lievisse Adriaanse <jasper@cvs.openbsd.org> | 2011-03-10 19:15:56 +0000 |
commit | b25c6f5b64e72a1079b92f61c32abdafffe3b7c7 (patch) | |
tree | f830c555bb1fbbb00644d23f35e088131e76366d /usr.bin | |
parent | 732c603fe121b02b406a65654d9f80dcc4d490ed (diff) |
- make this easier to read
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/pkg-config/pkg-config | 21 |
1 files changed, 7 insertions, 14 deletions
diff --git a/usr.bin/pkg-config/pkg-config b/usr.bin/pkg-config/pkg-config index 0089d120f2f..551fd5efdce 100644 --- a/usr.bin/pkg-config/pkg-config +++ b/usr.bin/pkg-config/pkg-config @@ -1,5 +1,5 @@ #!/usr/bin/perl -# $OpenBSD: pkg-config,v 1.30 2011/03/10 19:13:14 jasper Exp $ +# $OpenBSD: pkg-config,v 1.31 2011/03/10 19:15:55 jasper Exp $ #$CSK: pkgconfig.pl,v 1.39 2006/11/27 16:26:20 ckuethe Exp $ # Copyright (c) 2006 Chris Kuethe <ckuethe@openbsd.org> @@ -568,19 +568,12 @@ sub versionmatch print "comparing $want (wanted) to $inst (installed)\n" if $D; my $value = compare($inst, $want); - if ($op eq '>=') { - return $value >= 0; - } elsif ($op eq '=') { - return $value == 0; - } elsif ($op eq '!=') { - return $value != 0; - } elsif ($op eq '<') { - return $value < 0; - } elsif ($op eq '>') { - return $value > 0; - } elsif ($op eq '<=') { - return $value <= 0; - } + if ($op eq '>=') { return $value >= 0; } + elsif ($op eq '=') { return $value == 0; } + elsif ($op eq '!=') { return $value != 0; } + elsif ($op eq '<') { return $value < 0; } + elsif ($op eq '>') { return $value > 0; } + elsif ($op eq '<=') { return $value <= 0; } } sub mismatch |