summaryrefslogtreecommitdiffstats
path: root/docs
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-20 13:24:48 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-20 13:24:48 +0100
commit22006172baba61714207c67cd207140b76f4a941 (patch)
tree9e9cdc1e9739c55db509b75a50e4d78eb6bb43ec /docs
parent0535e724a274818f0ef7fab74d5a59a32fd78ac9 (diff)
fix typo and clean up docs build
Diffstat (limited to 'docs')
-rw-r--r--docs/Rakefile14
-rw-r--r--docs/content/2.download/default.yml2
2 files changed, 12 insertions, 4 deletions
diff --git a/docs/Rakefile b/docs/Rakefile
index 4ca5752f..932ce71c 100644
--- a/docs/Rakefile
+++ b/docs/Rakefile
@@ -91,6 +91,10 @@ def load_manual
YAML::load(File.open("content/3.manual/manual.yml"))
end
+def jq_version
+ YAML::load(File.open("site.yml"))["jq_version"]
+end
+
task :manpage do
Tempfile.open "manpage" do |f|
manual = load_manual
@@ -137,10 +141,14 @@ task :mantests do
end
end
+$TARBALL = "../jq-#{jq_version}.tar.gz"
+file $TARBALL do
+ sh "cd ..; ./configure && make dist && make distclean"
+end
+
directory "output/download/source"
-task :tarball => ["output/download/source"] do
- sh "cd ..; ./configure && make dist && make distclean"
- sh "cp ../jq-*.tar.gz output/download/source"
+task :tarball => ["output/download/source", $TARBALL] do
+ sh "cp #{$TARBALL} output/download/source"
end
task :dist => [:build, :binaries, :tarball]
diff --git a/docs/content/2.download/default.yml b/docs/content/2.download/default.yml
index c7faa1e9..1636948a 100644
--- a/docs/content/2.download/default.yml
+++ b/docs/content/2.download/default.yml
@@ -47,7 +47,7 @@ body:
You can build it using the usual `./configure && make && sudo
make install` rigmarole.
- If you're interested in using the lastest development version, try:
+ If you're interested in using the latest development version, try:
git clone https://github.com/stedolan/jq.git
cd jq