From 22006172baba61714207c67cd207140b76f4a941 Mon Sep 17 00:00:00 2001 From: Stephen Dolan Date: Mon, 20 May 2013 13:24:48 +0100 Subject: [PATCH] fix typo and clean up docs build --- docs/Rakefile | 14 +++++++++++--- docs/content/2.download/default.yml | 2 +- 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