summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-01-04 01:35:25 +0000
committerluke <luke@1f5c1d6a-bddf-0310-8f58-fc49e503516a>2006-01-04 01:35:25 +0000
commitd9c86d5c8fd965292dd91c28a34017309c75430b (patch)
tree1dfecd95f36b5cab11830972465e803a909dbe16
parent64a86db3aa9ec4ecafea8b987314606a93459099 (diff)
downloadfacter-d9c86d5c8fd965292dd91c28a34017309c75430b.tar.gz
facter-d9c86d5c8fd965292dd91c28a34017309c75430b.tar.xz
facter-d9c86d5c8fd965292dd91c28a34017309c75430b.zip
updating everything to essentially disable docs generation
git-svn-id: http://reductivelabs.com/svn/facter/trunk@72 1f5c1d6a-bddf-0310-8f58-fc49e503516a
-rw-r--r--Rakefile25
-rw-r--r--install.rb4
2 files changed, 16 insertions, 13 deletions
diff --git a/Rakefile b/Rakefile
index ff94cf0..0ca17d3 100644
--- a/Rakefile
+++ b/Rakefile
@@ -32,8 +32,7 @@ else
PKG_VERSION = CURRENT_VERSION
end
-GEMDIR = "/export/docroots/reductivelabs.com/htdocs/downloads/gems"
-TARDIR = "/export/docroots/reductivelabs.com/htdocs/downloads/facter"
+DOWNDIR = "/export/docroots/reductivelabs.com/htdocs/downloads"
# The default task is run if rake is given no explicit arguments.
@@ -65,13 +64,14 @@ end
# Create a task to build the RDOC documentation tree.
-rd = Rake::RDocTask.new("rdoc") { |rdoc|
+rd = Rake::RDocTask.new(:html) { |rdoc|
rdoc.rdoc_dir = 'html'
- rdoc.template = 'css2'
+ rdoc.template = 'html'
rdoc.title = "Facter"
rdoc.options << '--line-numbers' << '--inline-source' << '--main' << 'README'
rdoc.rdoc_files.include('README', 'LICENSE', 'TODO', 'CHANGES')
- rdoc.rdoc_files.include('lib/**/*.rb', 'doc/**/*.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+ CLEAN.include("html")
}
# ====================================================================
@@ -140,6 +140,8 @@ else
#pkg.need_zip = true
pkg.need_tar = true
end
+
+ CLEAN.include("pkg")
end
# Misc tasks =========================================================
@@ -275,16 +277,17 @@ task :tag => [:prerelease] do
announce "Release Task Testing, skipping SVN tagging"
else
sh %{svn copy ../trunk/ ../tags/#{reltag}}
- sh %{cd ./tags; svn ci -m 'Adding Release tag'}
+ sh %{cd ../tags; svn ci -m 'Adding Release tag #{reltag}'}
end
end
desc "Copy the newly created package into the downloads directory"
-task :copy => [:prerelease] do
- sh %{cp pkg/facter-#{PKG_VERSION}.gem #{GEMDIR}}
- sh %{generate_yaml_index.rb -d #{GEMDIR}}
- sh %{cp pkg/facter-#{PKG_VERSION}.tgz #{TARDIR}}
- sh %{ln -sf facter-#{PKG_VERSION}.tgz #{TARDIR}/facter-latest.tgz}
+task :copy => [:package, :html] do
+ sh %{cp pkg/facter-#{PKG_VERSION}.gem #{DOWNDIR}/gems}
+ sh %{generate_yaml_index.rb -d #{DOWNDIR}}
+ sh %{cp pkg/facter-#{PKG_VERSION}.tgz #{DOWNDIR}/facter}
+ sh %{ln -sf facter-#{PKG_VERSION}.tgz #{DOWNDIR}/facter/facter-latest.tgz}
+ sh %{cp -r html #{DOWNDIR}/facter/apidocs}
end
# $Id$
diff --git a/install.rb b/install.rb
index 73a1a2e..f151b92 100644
--- a/install.rb
+++ b/install.rb
@@ -283,7 +283,7 @@ EOS
prepare_installation
run_tests(tests) if InstallOptions.tests
-build_rdoc(rdoc) if InstallOptions.rdoc
-build_ri(ri) if InstallOptions.ri
+#build_rdoc(rdoc) if InstallOptions.rdoc
+#build_ri(ri) if InstallOptions.ri
do_bins(bins, Config::CONFIG['bindir'])
do_libs(libs)