fix typo and clean up docs build
This commit is contained in:
1 parent
0535e724a2
commit
22006172ba
2 files changed
+12
-4
No files matched your search
+11
-3
@@ -91,6 +91,10 @@ def load_manual
|
|||||||
YAML::load(File.open("content/3.manual/manual.yml"))
|
YAML::load(File.open("content/3.manual/manual.yml"))
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def jq_version
|
||||||
|
YAML::load(File.open("site.yml"))["jq_version"]
|
||||||
|
end
|
||||||
|
|
||||||
task :manpage do
|
task :manpage do
|
||||||
Tempfile.open "manpage" do |f|
|
Tempfile.open "manpage" do |f|
|
||||||
manual = load_manual
|
manual = load_manual
|
||||||
@@ -137,10 +141,14 @@ task :mantests do
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
$TARBALL = "../jq-#{jq_version}.tar.gz"
|
||||||
|
file $TARBALL do
|
||||||
|
sh "cd ..; ./configure && make dist && make distclean"
|
||||||
|
end
|
||||||
|
|
||||||
directory "output/download/source"
|
directory "output/download/source"
|
||||||
task :tarball => ["output/download/source"] do
|
task :tarball => ["output/download/source", $TARBALL] do
|
||||||
sh "cd ..; ./configure && make dist && make distclean"
|
sh "cp #{$TARBALL} output/download/source"
|
||||||
sh "cp ../jq-*.tar.gz output/download/source"
|
|
||||||
end
|
end
|
||||||
|
|
||||||
task :dist => [:build, :binaries, :tarball]
|
task :dist => [:build, :binaries, :tarball]
|
||||||
@@ -47,7 +47,7 @@ body:
|
|||||||
You can build it using the usual `./configure && make && sudo
|
You can build it using the usual `./configure && make && sudo
|
||||||
make install` rigmarole.
|
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
|
git clone https://github.com/stedolan/jq.git
|
||||||
cd jq
|
cd jq
|
||||||
|
|||||||
Reference in new issue
Block a user