diff options
author | Mitch Jackson <mitch@freeside.biz> | 2019-02-26 20:18:47 -0500 |
---|---|---|
committer | Mitch Jackson <mitch@freeside.biz> | 2019-02-27 02:02:53 -0500 |
commit | c0fe809ef451d5d862dd1c8aea1b15ccf34863ba (patch) | |
tree | c7c5f84730831b3ff1e8486536f83e99c9ba0307 /FS/FS/Misc | |
parent | 2d8ed14ea03c007dd041dd16cc2626959890dd48 (diff) |
RT# 81961 Pod2Html remove hard-coded perl src dirs
Diffstat (limited to 'FS/FS/Misc')
-rw-r--r-- | FS/FS/Misc/Pod2Html.pm | 10 |
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/*'), ) : (), ); |