File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -624,6 +624,12 @@ install_components() {
624
624
_file_install_path=" $CFG_MANDIR /$_f "
625
625
fi
626
626
627
+ if echo " $_file " | grep " ^share/doc/" > /dev/null
628
+ then
629
+ local _f=" $( echo " $_file " | sed ' s/^share\/doc\/[^/]*\///' ) "
630
+ _file_install_path=" $CFG_DOCDIR /$_f "
631
+ fi
632
+
627
633
# Make sure there's a directory for it
628
634
make_dir_recursive " $( dirname " $_file_install_path " ) "
629
635
critical_need_ok " directory creation failed"
@@ -834,6 +840,7 @@ valopt components "" "comma-separated list of components to install"
834
840
flag list-components " list available components"
835
841
valopt libdir " $CFG_DESTDIR_PREFIX /lib" " install libraries"
836
842
valopt mandir " $CFG_DESTDIR_PREFIX /share/man" " install man pages in PATH"
843
+ valopt docdir " $CFG_DESTDIR_PREFIX /share/doc/rust" " install documentation in PATH"
837
844
opt ldconfig 1 " run ldconfig after installation (Linux only)"
838
845
opt verify 1 " obsolete"
839
846
flag verbose " run with verbose output"
You can’t perform that action at this time.
0 commit comments