From dd7b1da0cf8c6cfb74a9a50b58e8e9932aeaefbb Mon Sep 17 00:00:00 2001 From: Galen Charlton Date: Thu, 13 Dec 2007 16:46:33 -0600 Subject: [PATCH] installer: made kohaversion.pl source for package version number Version now taken from kohaversion.pl instead of C4/Context.pm, aligning installer with the rest of Koha's internal version checks. --- Makefile.PL | 2 +- kohaversion.pl | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/Makefile.PL b/Makefile.PL index c529ad0cab..bcc5b85a53 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -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 ', NO_META => 1, diff --git a/kohaversion.pl b/kohaversion.pl index a6c2654e93..c96a9da1e2 100644 --- a/kohaversion.pl +++ b/kohaversion.pl @@ -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; -- 2.39.5