Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Install man pages.

  • Loading branch information...
commit 59485968943b5664ceca43e9137c5a3a246b8e37 1 parent 3e52e6f
Vít Ondruch authored
Showing with 15 additions and 0 deletions.
  1. +14 −0 rakelib/install.rake
  2. +1 −0  rakelib/vm.rake
14 rakelib/install.rake
View
@@ -117,6 +117,12 @@ def install_documentation(prefix, target)
end
end
+def install_manpages(prefix, target)
+ FileList["#{prefix}/**/*"].each do |name|
+ install_file name, prefix, "#{target}#{BUILD_CONFIG[:mandir]}"
+ end
+end
+
def install_gems(prefix, target)
FileList["#{prefix}/**/*.*", "#{prefix}/**/*"].each do |name|
install_file name, prefix, "#{target}#{BUILD_CONFIG[:gemsdir]}"
@@ -188,6 +194,12 @@ exec #{BUILD_CONFIG[:stagingdir]}#{BUILD_CONFIG[:bindir]}/$EXE "$@"
install_documentation "#{BUILD_CONFIG[:sourcedir]}/lib", BUILD_CONFIG[:stagingdir]
end
end
+
+ task :manpages do
+ if BUILD_CONFIG[:stagingdir]
+ install_manpages "#{BUILD_CONFIG[:sourcedir]}/doc/generated/vm/man", BUILD_CONFIG[:stagingdir]
+ end
+ end
end
namespace :install do
@@ -237,6 +249,8 @@ oppropriate command to elevate permissions (eg su, sudo).
install_documentation "#{stagingdir}#{BUILD_CONFIG[:libdir]}", prefixdir
+ install_manpages "#{stagingdir}#{BUILD_CONFIG[:mandir]}", prefixdir
+
install_cext "#{stagingdir}#{BUILD_CONFIG[:libdir]}", prefixdir
bin = "#{BUILD_CONFIG[:bindir]}/#{BUILD_CONFIG[:program_name]}"
1  rakelib/vm.rake
View
@@ -148,6 +148,7 @@ namespace :build do
kernel:build
stage:runtime
stage:documentation
+ stage:manpages
extensions
]
Please sign in to comment.
Something went wrong with that request. Please try again.