3 # Run all the postinstall.pl scripts in module and theme directories
8 @themes = &list_themes();
11 # Running for specified modules
13 local %minfo = &get_module_info($a);
16 ($tinfo) = grep { $_->{'dir'} eq $a } @themes;
27 # Running on all modules and themes
28 @mods = ( &get_all_module_infos(), @themes );
32 $mdir = &module_root_directory($m->{'dir'});
33 if (&check_os_support($m) &&
34 -r "$mdir/postinstall.pl") {
35 # Call this module's postinstall function
37 $main::error_must_die = 1;
38 &foreign_require($m->{'dir'}, "postinstall.pl");
39 &foreign_call($m->{'dir'}, "module_install");
42 print STDERR "$m->{'dir'}/postinstall.pl failed : $@\n";