Browse files

Copy files in to the correct man path

  • Loading branch information...
1 parent dd74190 commit 21f4d632ebe2559f42fa91f368a295e0346924ea @Sutto Sutto committed Jun 25, 2010
Showing with 5 additions and 1 deletion.
  1. +1 −1 scripts/initialize
  2. +4 −0 scripts/install
View
2 scripts/initialize
@@ -13,7 +13,7 @@ rvm_project_rvmrc_default="${rvm_project_rvmrc_default:-0}"
if [[ "root" = "$(whoami)" ]] ; then
rvm_bin_path="${rvm_bin_path:-"/usr/local/bin"}"
- rvm_man_path="${rvm_man_path:-"/usr/local/man"}"
+ rvm_man_path="${rvm_man_path:-"/usr/local/share/man"}"
else
rvm_man_path="${rvm_man_path:-"$rvm_path/man"}"
rvm_bin_path="${rvm_bin_path:-"$rvm_path/bin"}"
View
4 scripts/install
@@ -266,6 +266,10 @@ if [[ "root" = "$(whoami)" ]] ; then
mkdir -p $rvm_bin_path
chmod +x $rvm_bin_path/rvm
chmod +x $rvm_bin_path/rvmsudo
+ printf "\n Copying manpages into place."
+ for man_file in $(\ls "$install_source_path/man"); do
+ cp -f "$install_source_path/man/$man_file" "$rvm_man_path/$man_file"
+ done
fi
if [[ "$upgrade_flag" -eq 0 ]] ; then

0 comments on commit 21f4d63

Please sign in to comment.