summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-10 19:15:56 +0000
committerJasper Lievisse Adriaanse <jasper@cvs.openbsd.org>2011-03-10 19:15:56 +0000
commitb25c6f5b64e72a1079b92f61c32abdafffe3b7c7 (patch)
treef830c555bb1fbbb00644d23f35e088131e76366d /usr.bin
parent732c603fe121b02b406a65654d9f80dcc4d490ed (diff)
- make this easier to read
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/pkg-config/pkg-config21
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