aboutsummaryrefslogtreecommitdiffstats
path: root/docs/gen-html-index
diff options
context:
space:
mode:
Diffstat (limited to 'docs/gen-html-index')
-rw-r--r--docs/gen-html-index7
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/gen-html-index b/docs/gen-html-index
index 0ce06601bd..c0001d7f60 100644
--- a/docs/gen-html-index
+++ b/docs/gen-html-index
@@ -10,7 +10,6 @@ use warnings;
use Getopt::Long;
use IO::File;
use File::Basename;
-use List::MoreUtils qw/ uniq /;
Getopt::Long::Configure('bundling');
@@ -99,6 +98,12 @@ sub read_index ($$) {
}
}
+sub uniq (@) {
+ my %h;
+ foreach (@_) { $h{$_} = 1; }
+ return keys %h;
+}
+
for (@docs) { s,^\Q$outdir\E/,, }
@docs = grep { -e "$outdir/$_" && (make_linktext($_) ne "NO-INDEX") } @docs;