@ -663,6 +663,26 @@ display_configuration(\%config, $target_directories);
m y $file_map = { } ;
g e t _ f i l e _ m a p ( $ t a r g e t _ m a p , $ d i r t r e e , $ f i l e _ m a p ) ;
#NOTE: List files generated by build-resources.PL, so that they're copied into blib for installation
#INTRANET_TMPL_DIR
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/css/calendar.css' } = 'blib/INTRANET_TMPL_DIR/prog/css/calendar.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/css/holds.css' } = 'blib/INTRANET_TMPL_DIR/prog/css/holds.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/css/installer.css' } = 'blib/INTRANET_TMPL_DIR/prog/css/installer.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/css/mainpage.css' } = 'blib/INTRANET_TMPL_DIR/prog/css/mainpage.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/css/staff-global.css' } = 'blib/INTRANET_TMPL_DIR/prog/css/staff-global.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/js/vue/dist/main.js' } = 'blib/INTRANET_TMPL_DIR/prog/js/vue/dist/main.js' ;
$ f i l e _ m a p - > { 'koha-tmpl/intranet-tmpl/prog/js/vue/dist/main.js.LICENSE.txt' } = 'blib/INTRANET_TMPL_DIR/prog/js/vue/dist/main.js.LICENSE.txt' ;
#OPAC_TMPL_DIR
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/opac.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/opac.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/opac-rtl.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/opac-rtl.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/print.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/print.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/print-rtl.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/print-rtl.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/sco.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/sco-rtl.css' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/sco-rtl.css' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/maps/opac-rtl.css.map' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/maps/opac-rtl.css.map' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/maps/print-rtl.css.map' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/maps/print-rtl.css.map' ;
$ f i l e _ m a p - > { 'koha-tmpl/opac-tmpl/bootstrap/css/maps/sco-rtl.css.map' } = 'blib/OPAC_TMPL_DIR/bootstrap/css/maps/sco-rtl.css.map' ;
m y $pl_files = {
'rewrite-config.PL' = > [
'blib/KOHA_CONF_DIR/koha-conf.xml' ,
@ -675,9 +695,6 @@ my $pl_files = {
'fix-perl-path.PL' = > [ # this script ensures the correct shebang line for the platform installed on...
'blib'
] ,
'build-resources.PL' = > [
'blib'
] ,
} ;
p u s h @ { $ p l _ f i l e s - > { 'rewrite-config.PL' } } , (
@ -1799,6 +1816,18 @@ sub postamble {
return " $env \n " ;
}
s u b t o p _ t a r g e t s {
my $inherited = shift->SUPER::top_targets( @_) ;
my $compile_step ;
$compile_step .= "all :: compile_css_js\n" ;
$compile_step .= "\t" . '$(NOECHO) $(NOOP)' . "\n" ;
$compile_step .= "\n" ;
$compile_step .= "compile_css_js:\n" ;
$compile_step .= "\t" . '$(PERLRUN) build-resources.PL' . "\n" ;
my $top_targets = $compile_step . "\n" . $inherited ;
return $top_targets ;
}
s u b _ b u i l d _ p e r l 5 l i b _ s t r i n g {
my ( $args ) = @_;
my %unique_map = ( ) ;