installer: made kohaversion.pl source for package version number
authorGalen Charlton <galen.charlton@liblime.com>
Thu, 13 Dec 2007 22:46:33 +0000 (16:46 -0600)
committerGalen Charlton <galen.charlton@liblime.com>
Mon, 17 Dec 2007 15:13:53 +0000 (09:13 -0600)
Version now taken from kohaversion.pl instead of
C4/Context.pm, aligning installer with the rest
of Koha's internal version checks.

Makefile.PL
kohaversion.pl

index c529ad0..bcc5b85 100644 (file)
@@ -418,7 +418,7 @@ if ($config{'INSTALL_MODE'} ne "dev") {
 WriteMakefile(
     NAME => 'koha',
     #VERSION => strftime('2.9.%Y%m%d%H',gmtime),
-    VERSION_FROM => 'C4/Context.pm',
+    VERSION_FROM => 'kohaversion.pl',
     ABSTRACT => 'Award-winning integrated library system (ILS) and Web OPAC',
     AUTHOR => 'Koha Developers <koha-devel@nongnu.org>',
     NO_META => 1,
index a6c2654..c96a9da 100644 (file)
@@ -7,8 +7,14 @@
 #        used by developers when the database changes. updatedatabase take care of the changes itself
 #        and is automatically called by Auth.pm when needed.
 
+use strict;
+
 sub kohaversion {
-    return "3.00.00.035";
+    our $VERSION = "3.00.00.35";
+    # version needs to be set this way
+    # so that it can be picked up by Makefile.PL
+    # during install
+    return $VERSION;
 }
 
 1;