X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=Makefile.PL;h=9fb7d64543f85e7987d87a14a9e99e572594d9ef;hb=82daf0a5bc23042f24c1afb13e7d9746edc17914;hp=9a7121967f5c1bc665c830574a39027468f5ac92;hpb=70dccacee53693493235e81cb34dde8fe57ad4a2;p=koha_fer diff --git a/Makefile.PL b/Makefile.PL index 9a7121967f..9fb7d64543 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -251,6 +251,7 @@ my $target_map = { './misc/bin' => { target => 'SCRIPT_DIR', trimdir => -1 }, './misc/release_notes' => { target => 'DOC_DIR', trimdir => 2 }, './misc/translator' => { target => 'MISC_DIR', trimdir => 2 }, + './misc/koha-install-log' => { target => 'MISC_DIR', trimdir => -1 }, './misc/installer_devel_notes' => 'NONE', './opac' => 'OPAC_CGI_DIR', './README.txt' => 'NONE', @@ -436,7 +437,8 @@ get_file_map($target_map, $dirtree, $file_map, $config{'INSTALL_ZEBRA'} eq "yes" my $pl_files = { 'rewrite-config.PL' => [ 'blib/KOHA_CONF_DIR/koha-conf.xml', - 'blib/KOHA_CONF_DIR/koha-httpd.conf' + 'blib/KOHA_CONF_DIR/koha-httpd.conf', + 'blib/MISC_DIR/koha-install-log' ], 'fix-perl-path.PL' => [ # this script ensures the correct shebang line for the platform installed on... 'blib' @@ -981,6 +983,15 @@ PazPar2 port?); } print "\n\n"; + + # add version number + my $version = "no_version_found"; + eval { + require 'kohaversion.pl'; + $version = kohaversion(); + }; + $config{'KOHA_INSTALLED_VERSION'} = $version; + return %config; }