projects
/
simpleserver-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
8834273
)
Generalise YAZ-version requirement. Wind back to 2.0.0.
author
Mike Taylor
<mike@indexdata.com>
Fri, 24 Mar 2006 12:08:14 +0000
(12:08 +0000)
committer
Mike Taylor
<mike@indexdata.com>
Fri, 24 Mar 2006 12:08:14 +0000
(12:08 +0000)
Makefile.PL
patch
|
blob
|
history
diff --git
a/Makefile.PL
b/Makefile.PL
index
8aa3fd1
..
869d4ce
100644
(file)
--- a/
Makefile.PL
+++ b/
Makefile.PL
@@
-1,6
+1,6
@@
use ExtUtils::MakeMaker;
use ExtUtils::MakeMaker;
-## $Id: Makefile.PL,v 1.9 2006-03-24 12:06:15 mike Exp $
+## $Id: Makefile.PL,v 1.10 2006-03-24 12:08:14 mike Exp $
my $yazconf = "yaz-config";
my $yazver = `$yazconf --version`;
my $yazconf = "yaz-config";
my $yazver = `$yazconf --version`;
@@
-15,15
+15,17
@@
SimpleServer module.
];
}
];
}
-# Judging by the YAZ NEWS file, 2.1.10 was the first release to
-# include SRW/U support in the GFS
chomp($yazver);
my ($major, $minor, $trivial) = split(/\./, $yazver);
chomp($yazver);
my ($major, $minor, $trivial) = split(/\./, $yazver);
+# Judging by the YAZ NEWS file, 2.0.0 was the first release to
+# include SRW/U support in the GFS
+my ($needMaj, $needMin, $needTriv) = (2, 0, 0);
#print "major=$major, minor=$minor, trivial=$trivial\n";
#print "major=$major, minor=$minor, trivial=$trivial\n";
-die "You have YAZ version $major.$minor.$trivial; you need 2.1.10 or better"
- if ($major < 2 ||
- $major == 2 && $minor < 1 ||
- $major == 2 && $minor == 1 && $trivial < 10);
+die "You have YAZ version $major.$minor.$trivial; " .
+ "you need $needMaj.$needMin.$needTriv or better."
+ if ($major < $needMaj ||
+ $major == $needMaj && $minor < $needMin ||
+ $major == $needMaj && $minor == $needMin && $trivial < $needTriv);
# For Windows use
# $yazinc = '-Ic:\yaz\include'
# For Windows use
# $yazinc = '-Ic:\yaz\include'