summaryrefslogtreecommitdiff
path: root/FS/FS/Misc
diff options
context:
space:
mode:
authorMitch Jackson <mitch@freeside.biz>2019-02-26 20:18:47 -0500
committerMitch Jackson <mitch@freeside.biz>2019-02-27 02:02:53 -0500
commitc0fe809ef451d5d862dd1c8aea1b15ccf34863ba (patch)
treec7c5f84730831b3ff1e8486536f83e99c9ba0307 /FS/FS/Misc
parent2d8ed14ea03c007dd041dd16cc2626959890dd48 (diff)
RT# 81961 Pod2Html remove hard-coded perl src dirs
Diffstat (limited to 'FS/FS/Misc')
-rw-r--r--FS/FS/Misc/Pod2Html.pm10
1 files changed, 3 insertions, 7 deletions
diff --git a/FS/FS/Misc/Pod2Html.pm b/FS/FS/Misc/Pod2Html.pm
index 1dfca04..47ac16f 100644
--- a/FS/FS/Misc/Pod2Html.pm
+++ b/FS/FS/Misc/Pod2Html.pm
@@ -65,12 +65,11 @@ Generates Freeside-themed HTML docuemtnation from installed perl modules
sub fs_pod2html {
fs_pod2html_from_dirs(
shift,
- '/usr/local/share/perl/5.24.1',
+ grep( {-d} glob('/usr/local/share/perl/*')),
'/usr/local/bin',
$include_system_perl_modules ? (
'/usr/share/perl5',
- '/usr/share/perl/5.24',
- '/usr/share/perl/5.24.1',
+ grep {-d} glob('/usr/share/perl/*'),
) : (),
);
}
@@ -92,12 +91,9 @@ sub fs_pod2html_from_src {
'bin',
'FS',
'fs_selfservice/FS-SelfService',
- # '/usr/local/share/perl/5.24.1',
- # '/usr/local/bin',
$include_system_perl_modules ? (
'/usr/share/perl5',
- '/usr/share/perl/5.24',
- '/usr/share/perl/5.24.1',
+ grep {-d} glob('/usr/share/perl/*'),
) : (),
);